2931 days ago
Perl script to Mutate a DNA Sequence
...e mutation results. # While executing this script it asks for the file name of the DNA sequence. # If the DNA sequence file is not in the same directory of this script, enter the fil...2931 days ago
Perl script to count the number of Adenine, Thymine, Guanine and Cytosine in your DNA Sequence
...al/bin/perl -w # While executing this script it asks for the file name of the DNA sequence. If the sequence file is not available in the same directory of this script, enter the nam...2931 days ago
Extract fasta sequence from a multifasta file with coordinates
..."Sequence $seq not found. \n" } print ">$id\n", "$sequence\n"; } __END__ use Bio::DB::Fasta; # Create database from a directory of Fasta files my $db...2547 days ago
Download the genome from NCBI using bash script/command
...n/bash # Download the genome from NCBI using command # Create a Directory mkdir genome cd genome #...xtension="${filename##*.}" filename="${filename%.*}" # Create a directory with appending G mkdir "G$...2547 days ago
Download the gff files from NCBI using bash script/command
...n/bash # Download the genome from NCBI using command # Create a Directory mkdir genome_gff cd genome_...xtension="${filename##*.}" filename="${filename%.*}" # Create a directory with appending G mkdir "GF...2538 days ago
2509 days ago
Loop over with all files in a directory in bash
#!/bin/bash FILES=/media/ComparativeGenomics/ncbi-genomes-2017-11-13/* ref=/media/ComparativeGenomics/ncbi-genomes-2017-11-13/GCA_000196735.1_ASM19673v1_genomic.fna p...2346 days ago
Perl script to count the number of files in a directory with regex
#!/usr/bin/perl use strict; use warnings; my @allNames=("_D14_","_B14_","_B15_","_C1T1_","_C3T3_","_D12_","_D13_","_E1B1_","_E1B3_","_H001_","_H3-03_","_H3-04_","_HB0...2252 days ago
Perl script to find coding regions in DNA sequences
...ns[$i]}) - log(1/64); $i = $i + 1; } printf "%.2f\n",$r; __END__ To test the program, save this two files in your current working directory: exon.fa and intron.fa. Both...2170 days ago