Results for "Print"

Top-level pages

  • PerlOneLiner for Bioinformatician

    ...move all blank linesperl -ne 'print unless /^$/'perl -lne 'print if length'perl -ne 'print if...~~grep{/./}<>'perl -le 'print~~grep/./,<>'perl -E 'sa.../ && $t++ } @F; END { print $t }'perl -alne '$t += /regex...tsperl -le '@list = (1,2)x20; print "@list"' # Create an array f...

    2316 days ago

  • Awk for Bioinformatician and computational biologist

    ...input.If the action is not given, print all that lines that matches w...s nothing. It wont perform default printing operation.Each statement i...er of fields in a record. $ awk '{print $1","$2;}' data/test.tsvconti...appear, for example, if we want to print $1 three times (here we are u...

    2294 days ago

  • Bioinformatics OneLiner

    ...m += $2; n++ } END { if (n > 0) print sum / n; }' To get sequence...a file: awk '/^>/ {if (seqlen){print seqlen}; print ;seqlen=0;next...unzip -c {} | wc -l | awk '{d=\$1; print d/4;}'" ::: *.gz To count re...at reads.fastq | awk '{if(NR%4==2) print length($1)}' | sort | uniq -c...

    2231 days ago

  • Parallel Processing with Perl !

    ...txt”);flock $QUAL, LOCK_EX or die “cant lock file $!”;print $QUAL “$output”;f...le = readdir(DIRECTORY)) { ### read the directoryif($file=~/^\./){next;}print $file,”\n”;######...

    2094 days ago

  • Benchmarking Perl Module !

    ...t_time = Benchmark->new; our code…… $second_time = Benchmark->new; $final_difference = timediff($first_time,$second_time); print “the code took, timestr...

    2094 days ago