Python script to convert Multi-line Fasta to Single-line Fasta
def multi_to_single_line_fasta(input_filename, output_filename): try:...t_filename} to {output_filename} in single-line FASTA format.") except FileN....") # Example usage: # multi_to_single_line_fasta('multi_line.fasta', 'single_l...109 days ago
Perl script to convert Multi-line Fasta to Single-line Fasta !
...ct; use warnings; sub multi_to_single_line_fasta { my ($input_filename, $...ut_filename to $output_filename in single-line FASTA format.\n"; } # Example u...le_line_fasta('multi_line.fasta', 'single_line.fasta');109 days ago
Bash script to convert Multi-line Fasta to Single-line Fasta !
#!/bin/bash input_filename="multi_line.fasta" output_filename="single_line.fasta" awk '/^>/ {printf("\n%s\n", $0);next; } { prin...y converted $input_filename to $output_filename in single-line FASTA format."109 days ago
108 days ago
Perl and BioPerl script to extract protein sequences using GFF file !
.../usr/bin/perl use strict; use warnings; use Bio::DB::Fasta; use Bio::SeqIO; # Paths to your GFF file and genome FASTA file my $gff_file = 'path/to...our/file.gff'; my $genome_fasta = 'path/to/your/genome.fasta'; # Gene ID to extract my...108 days ago
Perl script for six frame translation !
...e Bio::SeqIO; # Path to your input nucleotide sequence file in FASTA format my $input_fasta = 'path/to/your/input.fasta';...e my $seqio = Bio::SeqIO->new(-file => $input_fasta, -format => 'fasta'); my $sequence = $seqio->ne...108 days ago
Python script for six frame translation of sequences !
...() return translated_seq def six_frame_translation(fasta_file): records = list(SeqIO.parse(fasta_file, "fasta")) for re...on:\n{protein_sequence}\n") # Replace 'path/to/your/input.fasta' with the actual path to your...108 days ago
Perl script to calculate the basic stats of the assembled genome !
...o::SeqIO; # Input file containing the genome assembly in FASTA format my $input_file = 'genome_assembly.fasta'; # Create Bio::SeqIO obje...$seqio = Bio::SeqIO->new(-file => $input_file, -format => 'fasta'); # Variables for computi...108 days ago
Python script for basic stats of the assembled genome !
...statistics # Input file containing the genome assembly in FASTA format input_file = 'genome_assembly.fasta' # Variables for computing...ence in the assembly for record in SeqIO.parse(input_file, 'fasta'): length = len(record.s...108 days ago
62 days ago