Perl script to break the contigs by 'N'
#!/usr/bin/perl -w use Bio::SeqIO; use strict; my $fasta = Bio::SeqIO->new( -file => "$ARGV[0].parts.fasta",-format=>'fasta'); open(SCAFF,">$ARGV[0].parts.scaff")...2106 days ago
Perl script to run in parellel !
#!/usr/bin/perl use strict; use warnings; use Parallel::ForkManager; use Bio::SeqIO; my ($sequence_data_ref) = parse_genome_files($ARGV[0]); my %genome=%{$seque...1729 days ago
Bash commandline to install Anaconda !
#The line begins with $ are the commands $ mkdir tmp $ cd tmp/ $ curl -O https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh % Total % Rec...1598 days ago
1557 days ago
Commands to install conda in Ubuntu !
jit@jit-HP-Pro-3335-MT:~/Downloads$ mkdir jittmp jit@jit-HP-Pro-3335-MT:~/Downloads$ cd jittmp/ jit@jit-HP-Pro-3335-MT:~/Downloads/jittmp$ curl -O https://repo.anacon...1554 days ago
Python script to check sequence length in multifasta file
#!/usr/bin/python from Bio import SeqIO import sys cmdargs = str(sys.argv) for seq_record in SeqIO.parse(str(sys.argv[1]), "fasta"): output_line = '%s\t%i' % \ (seq_record.id, len(seq_record)) print(output_line)1258 days ago
1258 days ago
1250 days ago
Set up WGD environment using conda !
#Wgd cannot be installed directly with bioconda at present, so it is slightly troublesome to install, because it #depends on a lot of software. wgd depends on the followi...1246 days ago
Parse the NCBI taxonomy database with Perl !
use Bio::DB::Taxonomy; use warnings; my $sps="human"; # Get one from a NCBI taxonomy database my $dbh = Bio::DB::Taxonomy->new(-source => 'flatfile',...1215 days ago