Long reads mapper bash script !
...LONG READS mapping #USAGE: runMapper.sh minimap2 ref.fa reads.fa/...$2 longReads=$3 thread=$4 readsType=$5 if [ $# -lt 5 ]; then...provided" echo "#USAGE: runMapper.sh minimap2 ref.fa reads.fa/...t.sam else echo "LAMSA:Please specify reads type: ont, pacbio"...2179 days ago
Perl subroutine to read genome/reads fasta file !
sub readSeqFromFasta{ my $file = $_[0]; my (%map,$id,$seq); open(IN,$file) or die("Cannot open file for reading $file:$!\n"); while(){ chomp; if($_ =~ /^>/){ if(defined $id && de...2190 days ago
2184 days ago
2183 days ago
Perl script to merge LastZ overlaps
#!/usr/bin/perl use strict; use warnings; use 5.010; # Filter out the exact/direct overlaps from tab seperated alignment file. (lastz format=general- ready) # Do not inclide header in lastz outfile # USAGE: perl filterOverlaps.pl infile > outfile open my $fh, '2182 days ago
2179 days ago
1573 days ago
Installing Porechop on Ubuntu !
...copying porechop/cpp_function_wrappers.py -> build/lib/porechop c...-fPIC -O3 -D NDEBUG -Wall -Wextra -pedantic -mtune=native -c -o por...build/lib/porechop/cpp_function_wrappers.py -> /home/urbe/anaconda3/...A read must have at least this percent identity to a...2162 days ago
2155 days ago
Perl script to find palindromic pattern !
#!/usr/bin/perl use strict; use warnings; use strict; my %invert; @invert{ qw[ A C G T ] } = qw[ T G C A ]; my $in = do{ local $/; }; chomp $in; print $in; for my...2155 days ago