Results for "Split"

Wire posts

  • Rename the fasta name perl -ane 'if(/\>/){$a++; @foo = split /\s+/;$_ = join '_', @foo; print "$_\n"}else{print;}' your.fasta > new.fa #PerlTrick #PerlOneliner #Perl

    2786 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

    2778 days ago

  • Slice on the fly with perl: my ($username, $real_name) = (split /:/, $str)[0, 4]; #Perl #PerlTrick #Split

    2745 days ago

  • Split the bam file by chromosome. $ bamtools split -in file.bam -reference #Split #Bam #Bamtools

    2620 days ago

  • Split the file in Linux with size. $ split --bytes=50M aaaa.fa #split #linux #size

    2493 days ago

  • #Split #multifasta $ cat hg18.fa | awk '{ if (substr($0, 1, 1)==">") {filename=(substr($0,2) ".fa")} print $0 > filename }'

    2214 days ago

  • perl -e '$/="\n>"; while (<>) { s/>//g; my ($id, $seq) = split /\n/; print ">$_" if length $seq; }' < all_p_ctg.fasta > all_p_ctg_corrected.fasta #Convert #Fasta #Zero

    2136 days ago

  • Split the fasta $ pyfasta split -k 100 -o 20 input.fasta -n 1 #split #pyfasta #overlaps

    2045 days ago

  • #Split the #BAM file $ /home/urbe/Tools/bamtools/bin/bamtools split -in improved3.fasta.sorted.bam -reference #bamtools

    1961 days ago

  • Split a multi-FASTA file into individual FASTA files: awk '/^>/{s=++d".fa"} {print > s}' multi.fa #split #multifasta

    1934 days ago