2932 days ago
Perl script introduces control structures, arrays and hashes.
#!/usr/bin/env perl use strict; use warnings; my @first_array = ('DNA', 'ATGCGTGC', 5, 'RNA', 'AUGC'); print $first_arra...r for (my $i=0; $i 'ATCGATGCT', 'RNA' => 'AUGC',...2877 days ago
Install ATOM editor on Elemantory OS / Ubuntu
#Download ATOM deb file from https://atom.io/ https://atom.io/download/deb (base) bioqueen@bioqueen-Lenovo-ideap...e colored output. #Atom is essentially a text editor that you can use for cod...1191 days ago
Perl script to find coding regions in DNA sequences
#!/usr/bin/perl -w use strict; # if the number of input arguments is lower than...intron, respectively. Extremely different values of coding potential should be obtained with the two sequences: high values (positive) for cod...2170 days ago
Biological Sequence handling with Perl !
package Sequence::Generic; # File: Sequence/Generic.pm use s...Can't initialize sequence from non-Sequence object.\n" un...$self->{'data'} = $self->_canonica...= $type || ($sequence=~/u/i ? 'RNA' : 'DNA'); } return $se...return $seq unless $self->is_RNA; $seq=~tr/T/U/; ret...2196 days ago
2142 days ago
1531 days ago
2090 days ago
Perl script to count occurrence of a character !
#!/usr/bin/env perl # -*- coding: utf-8 -*- #!/usr/bin/perl use strict; use warnings; my %count_of; while ( ) { my @val = split "\t", $_; #my...1916 days ago
Python script to read FASTA and FASTQ file !
# !/usr/bin/env python3 # -*- coding: utf-8 -*- from pysam import FastxFile def read_fasta_q_file(fasta_q_file): """Parse FASTA/Q file using `pysam....991 days ago