Results for "File"

Wire posts

  • Remove tab with comma in file: perl -lpe 's/\t/,/g' < flattened_line_0.fa.data > output.csv #PerlTrick #PerlO,liner #Perl #Tab #Comma

    2883 days ago

  • Genome and coverage https://rtsf.natsci.msu.edu/_rtsf/assets/File/depth%20and%20coverage.pdf #Coverage #Genome #Depth #Reads #NGS

    2773 days ago

  • Find a file with certain size and delete them: $ find . -name "see-D-d-ALN_*" -size -10k -delete #Delete #Size #Linux #Tricks

    2850 days ago

  • Extract fasta sequence by Ids: perl -ne 'if(/^>(\S+)/){$c=grep{/^$1$/}qw(id1 id2)}print if $c' fasta.file #Perl #PerlOneliner #PerlTrick #Extract #Ids #Fasta

    2839 days ago

  • Extract sequence by using Ids file (assuming one ids in a line): perl -ne 'if(/^>(\S+)/){$c=$i{$1}}$c?print:chomp;$i{$_}=1 if @ARGV' ids.file fasta.file #PerlTricks #PerlOneliner #Perl #Extract #Ids #

    2839 days ago

  • Split the text file with line number in Linux: wc -l abc.txt and then: split -l 60000 abc.txt #Split #Break #Line #Ubuntu #Linux #Tricks

    2832 days ago

  • Extract a fasta sequence from multifasta file: samtools faidx multitest.fa and then samtools faidx multitest.fa fasta_id > out.fa #Samtools #Fasta #Extract #Multifasta

    2799 days ago

  • Accept file from STDIN in Perl my $infh = \*STDIN; my $outfh = \*STDOUT #Perl #Tricks

    2748 days ago

  • Understanding and manipulating SAM/BAM alignment files http://homer.salk.edu/homer/basicTutorial/samfiles.html #SAM #BAM #File #Explain

    2678 days ago

  • Fasta sequence length: awk '/^>/ {if (seqlen){print seqlen}; print ;seqlen=0;next; } { seqlen += length($0)}END{print seqlen}' file.fa #Length #Linux #OneLiner

    2710 days ago