bioToolkit is a Python library to deal with biological data
-
bioIO
-
Reading, creating and writing FASTA files
from bioinfoToolkit.bioIO import * #Reading a fasta file fasta_file = bioreader("file.fasta").readFasta() fasta_id = fasta_file.id() #Create a list with the description lines contained in the fasta file. fasta_seq = fasta_file.sequences() #Create a list with the sequences contained in the fasta file. #Creating and writing your own fasta my_sequences = ['ATCG','CGAT'] my_id = ['exemple_1', 'exemple_2'] my_fasta = fasta(my_id, my_sequences) my_fasta.write("output.fasta")
-
Reading, creating and writing FASTQ files
from bioinfoToolkit.bioIO import * #Reading a fastq file fastq_file = bioReader("file.fastq").readFastq() fastq_id = fastq_file.id() fastq_seq = fastq_file.sequences() fastq_quality = fastq_file.qualities()
-
-
biofunctions
- couting
- transcription
- translastion
- reverseComplement
- RandomDNA
- consensus
- profile
-
biodistance
- editDistace
- hammingDistance