2157 days ago
Read lines from input file – print lines that match a regular expression
#!/usr/bin/perl use strict; use warnings; my $line; #read the line-by-line for each line ask if it matches the regex print it if it matches while($line = ){...2930 days ago
Perl script to extract lines with matching ids !!
#!/usr/bin/perl use strict; use warnings; my %patterns; #USAGE: perl extactByIds.pl Idsfile1 file2 > Result # Open file and get patterns to search for open(my $fh2,"2888 days ago
Remove duplicate lines with perl
#! perl -sw use strict; my %lines; #open DATA, $ARGV[0] or die "Couldn't open $ARGV[0]: $!\n"; while () { print if not $lines{$_}++; } __DATA__ apple apple plum vinegar apple banana banana banana apple2306 days ago
Extract the values between to user defined string with Perl
...record } __DATA__ XXXX YYYY START These are the first set of lines which are to be extracted E...be extracted? END XXX ZZZ YYY START These are the second set of lines which are to be extracted E...2306 days ago
2277 days ago
Plot custom gene density with R
library(karyoploteR) pp2263 days ago
Perl script to find palindromic regions in DNA sequences
use strict; use warnings; my $pp = qr/(?: (\w) (?1) \g{-1} | \w? )/ix; my $filename = $ARGV[0]; open(my $fh, '2167 days ago
2164 days ago
Install Python locally on shared Linux server !
...e system. We are going to update the environment variables to force the shell to use our new python. Edit #~/.bashrc_profile and add the following lines: export PATH=$HOME/python/...2111 days ago