Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

biopython parse fasta

from Bio import SeqIO

fasta_sequences = SeqIO.parse(open(input_file),'fasta')
with open(output_file) as out_file:
    for fasta in fasta_sequences:
        name, sequence = fasta.id, str(fasta.seq)
        new_sequence = some_function(sequence)
        write_fasta(out_file)
Comment

PREVIOUS NEXT
Code Example
Python :: vectorized function 
Python :: tkinder 
Python :: how to make a value 0 if its negatice 
Python :: lunarcalendar python 
Python :: Drop multiple consecutive columns 
Python :: Custom x, y-ticks using ax 
Python :: pyqt set widget size 
Python :: How to Use the abs() Function with an Integer Argument 
Python :: python get favicon from url 
Python :: pandas python multiindex 
Python :: how to create a sub project in django 
Python :: cv2 pink color range 
Python :: odoo 12 compute documentation 
Python :: how to get single element from arraylist in numpy arrayt 
Python :: first_list = [10,20,30,40] second list = first list second list[3]=400 
Python :: lambda if else nothing python 
Python :: discord.py clear 
Python :: python pyinstler not found 
Python :: tuple parameter function python is None 
Python :: pandas iloc include header 
Python :: monoamine oxidase inhibitor 
Python :: django BruteBuster error failed attempts 
Python :: geopy set proxy 
Python :: cdf empírica python 
Python :: raspberry pi pygame play thru bluetooth device 
Python :: discord.py find channel by id 
Python :: connect kaggle to colab 
Python :: python numpy + opencv + overlay image 
Python :: To obtain the latest released version of statsmodels using pip: 
Python :: autoscrapper basic code 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =