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
All
Groups
Tryst
Blogs
Bookmarks
Files
Fun
Discussion topics
News
Opportunity posts
Pages
Top-level pages
Polls
ResearchLabs posts
Bio-Scripts
Wire posts
User Points
Video
Users
Comments
Tags
Our Sponsors
Download
BioinformaticsOnline(BOL) Apps
in your chrome browser.
Results for "
PerlTrick
"
Wire posts
Jitendra Narayan
@admin
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
3237 days ago
Jit
@jit.aber
Print all the values between 15 to 17. perl -ne 'print if 15 .. 17' file #Perl #
PerlTrick
#Range
3023 days ago
Jit
@jit.aber
Remove tab with comma in file: perl -lpe 's/\t/,/g' < flattened_line_0.fa.data > output.csv #
PerlTrick
#PerlO,liner #Perl #Tab #Comma
2846 days ago
Poonam Mahapatra
@poonam
Replace space with tab: perl -lpe 's/\s/\t/g' < trf_file.dat > outfile.txt #TRF #Tab #Space #Replace #Perl #
PerlTrick
#PerlOneliner
2844 days ago
Shruti Paniwala
@shruti
Rename the fasta name perl -ane 'if(/\>/){$a++; @foo = split /\s+/;$_ = join '_', @foo; print "$_\n"}else{print;}' your.fasta > new.fa #
PerlTrick
#PerlOneliner #Perl
2803 days ago
Radha Agarkar
@radhaagarkar
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
2802 days ago
Shruti Paniwala
@shruti
Slice on the fly with perl: my ($username, $real_name) = (split /:/, $str)[0, 4]; #Perl #
PerlTrick
#Split
2762 days ago