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
#PerlTrick
Wire posts tagged with 'PerlTrick'
Shruti Paniwala
@shruti
Thread
By
Shruti Paniwala
2931 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
2972 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
2972 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
By
Poonam Mahapatra
3014 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
By
Jit
3016 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
3192 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
3406 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