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
Polls
The Wire
Videos
Our Sponsors
Download
BioinformaticsOnline(BOL) Apps
in your chrome browser.
The Wire
#PerlTrick
Wire posts tagged with 'PerlTrick'
Shruti Paniwala
@shruti
Thread
By
Shruti Paniwala
3508 days ago
Slice on the fly with perl: my ($username, $real_name) = (split /:/, $str)[0, 4];
#Perl
#PerlTrick
#Split
Radha Agarkar
@radhaagarkar
Thread
By
Radha Agarkar
3549 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
Shruti Paniwala
@shruti
Thread
By
Shruti Paniwala
3550 days ago
Rename the fasta name perl -ane 'if(/\>/){$a++;
@foo
= split /\s+/;$_ = join '_',
@foo
; print "$_\n"}else{print;}' your.fasta > new.fa
#PerlTrick
#PerlOneliner
#Perl
Poonam Mahapatra
@poonam
Thread
2 likes
Priya Singh
@priyasingh
Priya Singh
liked this
3587 days ago
Poonam Mahapatra
@poonam
Poonam Mahapatra
liked this
3587 days ago
By
Poonam Mahapatra
3591 days ago
Replace space with tab: perl -lpe 's/\s/\t/g' < trf_file.dat > outfile.txt
#TRF
#Tab
#Space
#Replace
#Perl
#PerlTrick
#PerlOneliner
Jit
@jit.aber
Thread
2 likes
Priya Singh
@priyasingh
Priya Singh
liked this
3587 days ago
Poonam Mahapatra
@poonam
Poonam Mahapatra
liked this
3587 days ago
By
Jit
3593 days ago
Remove tab with comma in file: perl -lpe 's/\t/,/g' < flattened_line_0.fa.data > output.csv
#PerlTrick
#PerlO
,liner
#Perl
#Tab
#Comma
Jit
@jit.aber
Thread
By
Jit
3769 days ago
Print all the values between 15 to 17. perl -ne 'print if 15 .. 17' file
#Perl
#PerlTrick
#Range
Jitendra Narayan
@admin
Thread
By
Jitendra Narayan
3983 days ago
Print all possible 2 combination of words ( ATGC): $letter = join',','A','T','G','C';
@abc
=glob "{$letter}{$letter}"; foreach (
@abc
) { print "$_\n"; }
#Perl
#PerlTrick
#TipsOftheDay