BOL
Log in
Username or email
Password
Remember me
Register
Lost password
Activity
News
Opportunity
ResearchLabs
Questions
Pages
Discussion
More
BioScripts
Blogs
Bookmarks
Files
Fun
Groups
Polls
The Wire
Tryst
Videos
Our Sponsors
Download
BioinformaticsOnline(BOL) Apps
in your chrome browser.
The Wire
#extract
Wire posts tagged with 'extract'
Rahul Nayak
@rahul
Thread
By
Rahul Nayak
3392 days ago
Extract sequences by their ID from a fasta file. perl -ne 'if(/^>(\S+)/){$c=$i{$1}}$c?print:chomp;$i{$_}=1 if
@ARGV
' ids.txt sample1.fa
#Extract
#Sequences
#IDs
#Fasta
#Perl
#Trick
#Oneliner
Jit
@jit.aber
Thread
By
Jit
3852 days ago
perl -nle 'if (/^>/) { $sl = 0; print; next } next if ($sl >= 200); $_ = substr($_, 0, 200-$sl) if ($sl + length($_) > 200); $sl += length($_); print;' file.fa >new.fa
#Perl
#Extract
#Fasta
Jit
@jit.aber
Thread
By
Jit
3866 days ago
Extract list of read ID from bam file: samtools view mbi.sorted.bam |perl -ne '/ID/ && print' > extractedID.sam
#Extract
#Ids
#SAM
#BAM
#NGS
« Previous
1
2
Next »