Python script to convert fastq to fasta
def fastq_to_fasta(fastq_file, fasta_file): with open(fastq_file, 'r') as fq:...(fasta_file, 'w') as fa: while True: # Read four lines from the FASTQ file...52 days ago
Python script to parse GFF file
def parse_gff(gff_file): features = [] with open(gff_file, 'r') as f: for line in f: if not line.startswith('#'): # Ignore comment lines fields = lin...52 days ago
Python script to finds extact similar sequence between two multi fasta files !
from Bio.Blast.Applications import NcbiblastnCommandline import os import sys def perform_local_...ject_file, output_file): # Set up the BLAST command with format 6 (tab-delimited) blastn_cline = NcbiblastnComma...16 days ago