Questions tagged [biopython]

Biopython is a set of freely available tools for biological computation written in Python.

Filter by
Sorted by
Tagged with
0
votes
2answers
39 views

Python: How to write duplicate sequences removed from fasta file to new file

I currently am using this code to remove duplicate sequences from the fasta file. However, I would also like to write a new file with only the removed duplicates as well as a count for how many times ...
0
votes
1answer
57 views

Remove Redundant Sequences from FASTA file in Python

I'm attempting to remove redundant sequences from a fasta file (from NCBI). When I execute this code, it returns the number of spots, not the number of sequences. (Number of spots: 408,293, Number of ...
1
vote
1answer
26 views

Relaxed and sequential Phylip format conversion

I routinely use AlignIO in BioPython for manipulating alignments and in context here moving from fasta format to phylip format. Alot of phylogeny packages accept a relaxed (sequence ID) & ...
0
votes
1answer
50 views

How can i modify FASTA headers in a multi fasta file using BioPython SeqIO

I have a multi fasta file similar to this (relatively new here so uncertain of best way to present this; I have gone for an output and the code i used to make it - belt and braces...): ...
1
vote
0answers
13 views

How to (efficiently) search nuccore to retrieve only annotated sequences?

I wish to efficiently search nuccore to retrieve only annotated sequences. By "annotated" I mean that the nuccore entry contains annotation information. An equivalent definition (if I understand ...
0
votes
0answers
14 views

Meaning of the Flags attribute returned by Entrez.esummary(db='nuccore')

My Question Calling Entrez.esummary for the nuccore db returns records with various fields. One of these fields is Flags. I ...
1
vote
0answers
18 views

Is there a built-in parser for the textual feature table that Entrez.efetch returns?

Entrez.efetch helpfully gives me the feature table of a nuccore entry. If I understand correctly, efetch can only return the ...
2
votes
0answers
23 views

MSA (protein) with biopython or something else?

I am very new to bioinformatics (and python in general), but I would like to use python to more efficiently analyse enzymes both in terms of structure and functio, using Jupiter notebook. I would like ...
0
votes
0answers
22 views

Finding regions between ORFs

I'm doing work on mRNA and need to get predicted mRNA sequences from a genome. I'm working with this genome https://www.ncbi.nlm.nih.gov/nuccore/U00096.3 (E. coli k-12 mg1655). So have a genome ...
0
votes
0answers
21 views

Can I pull a jackhmmer output file into ClustalO for pairwise alignments?

I'm still working on figuring out how to send ClustalO multiple jobs. I have a hmmer output and was looking to do a mixture of pairwise and local alignments on a subset of these. Is it possible to ...
1
vote
2answers
94 views

Can I automate CLUSTALO and output alignment sequence identity?

I've detected homology between targets of ligands in drugbank and proteins in the proteome of a pathogen. I've parsed the output very rudimentary and calculated my query coverage. This exists in an ...
2
votes
1answer
58 views

Possibility to save output blastn table in memory using biopython

Is there a possibility, using biopython to save output table of blastn in memory, not in file on hard drive, for process it using pandas for example and then delete it from memory? I mean, is there a ...
1
vote
0answers
16 views

Indel quality from mpileup

Could someone please confirm that I understand this correctly? I have the res and qual columns from mpileup and I would like to match them to get the qual per base. It seems that the indel initiation (...
1
vote
1answer
41 views

Visualizing cell growth

I model the following events: a rod-shaped cell with center $x$ grows symmetrically until it reaches a maximum length/age, it divides into two identical cells, and the process continues. At division, ...
2
votes
1answer
23 views

Tools for modelling and visualizing growth of cells

I am looking for a program/GUI app/package that would help me do simulations for cell growth. I have a microscopic mathematical model, and the scenario is basically the following: I start with a rod-...
1
vote
1answer
26 views

Cutting the sequence into several sequences with the information of a dataframe

I have a fasta file with several 120-concatenation protein sequences. I also have a data frame with 120 names of proteins in column 1 and their length in column 2. Using this dataframe I want to ...
0
votes
1answer
36 views

how to generate structure file from blast results of an input sequence

I have tried to incorporate blast in my application using biopython.i could extract the blast results but now i want to extract the structure file corresponding matches. My code is : ...
1
vote
2answers
74 views

Parsing a GenBank file with multiple gene entries

Basically a GenBank file consists of gene entries (announced by 'gene') followed by its corresponding 'CDS' entry (only one per gene) like the two shown here below. I would like to extract part of the ...
0
votes
0answers
23 views

What values for database keyword can be used with Bio.Blast.NCBIWWW.qblast?

I want to make a Blast search with Bio.Blast.NCBIWWW.qblast for a protein sequence. from Bio.Blast.NCBIWWW import qblast qblast("blastp", "nt", sequence=seq) The ...
1
vote
2answers
110 views

How to create a .phy file for constructing a phylogenetic tree?

I'm new here. I need to construct a phylogenetic tree from 16s Sequence data (merged 151 bp) and color the branches/nodes based on my experimental conditions. From this blog, it looks like I need a ....
1
vote
2answers
42 views

No output when trying to obtain protein sequence from PDB file

I am trying to obtain the sequence from PDB file, but no output is given when I run the following code : ...
3
votes
2answers
189 views

How to translate amino acid sequences to Nucleotide sequences

I want to convert a list of fasta ( protein sequences) in a .text file into corresponding nucleotide sequences. A Google search gives me result of DNA to protein conversion but not vice versa. Also, I ...
2
votes
1answer
64 views

renaming IDs in gff3 with BCBio.GFF

I wrote a script which should changes IDs in a GFF3 file. Unfortunately, the below script has two problems. It attaches the new ID to Parent which leads that ...
2
votes
1answer
83 views

Infer the new (Ban et. al) ribosomal nomenlature (ex. uL53 ) from the ribosomal protein's sequence

I'm trying to programmatically construct a name for each protein subchain in any ribosome from Uniprot in accordance with Ban et. al's 2014 proposal (excerpt given below) using PDB's and Uniprot's ...
1
vote
1answer
65 views

Unable to read all alignments in stockholm format : UnicodeDecodeError: 'utf-8'

I have a file in Stockholm format and I am trying to read it using the Biopython package. The code is as follows : ...
0
votes
1answer
53 views

Given a .gb file and a locus - how to get relevant annotations in Python?

Given a .gb file and a specific locus in the genome - how can I retrieve the relevant annotations in Python (i.e., annotations that include that locus)? I could ...
3
votes
1answer
72 views

protein secondary structure matching/comparison scoring

I want to compare two secondary structures of aligned proteins. I do not know exactly how to do it well. Example: ...
0
votes
2answers
63 views

What kind of analysis is practically done on GSE data files?

I have a GSE data file in csv file format containing fields such as: ID, adj.P.Val, P.Value, t, B, logFC, Gene.symbol, Gene.title. In which adj.P.Val, P.Value, t, B, logFC fields being numeric. What ...
1
vote
1answer
128 views

Is there any tool for fuzzy sequence matching?

Note: this question was also asked on biostars are you aware of any tool that is able to perform error-tolerant pattern-matching search on protein FASTA files? For example, I want to know, which ...
0
votes
2answers
72 views

read and matching pattern with python

I have read the content of a text file into pandas and needed some help matching the pattern. Here is the pattern, where a can any number greater than zero and <...
3
votes
0answers
39 views

How to load output from the kegg API in biopython into a pandas dataframe?

Biopython provides a (bit unintuitive) API to access to the Kyoto Encyclopedia of Genes and Genomes (KEGG). I am trying to make use of it, but the output is quite unhandy as a string. What is the best ...
1
vote
1answer
39 views

Biopython Genbank writer not splitting long lines

I am parsing a csv file of annotated sequences and using Biopython to generate Genbank files for each. I want to add annotations of the sequence features. My output file shows features listed without ...
2
votes
1answer
42 views

Parsing specific features from Genbank by label?

I'm trying to parse a Genbank file to find a specific feature. I can pull it out if I know the feature type (e.g. repeat_region). E.g. if I'm looking for this feature: ...
1
vote
1answer
72 views

From ensembl id to protein structure

Forgive me if this question is too trivial. I have a list of ~700 Ensembl ID. I need to extract the protein structures of each Ensembl id. How can I do this? Is there any script(python, R) so that ...
1
vote
1answer
62 views

I have a list of protein targets. How to get structural data (atomic coordinate) from PDB?

I have a list of around 500 protein targets (human). I only have their protein symbols. As an example: EGFR AR FOXA1 CXCR3 ... I want to get structural data (atomic coordinate) from PDB (Protein ...
1
vote
2answers
82 views

Biopython Failure to break out of loop

After qblast, I wanted to print only details from the first 3 BLAST output. Yet, the code below printed the details of every BLAST output. Why can't I break out of the loop to achieve my desired ...
1
vote
2answers
94 views

How to efficiently get human gene names from NCBI based on a large list of SNPs

I found a good answer related to my question here: How to get a list of genes corresponding to the list of SNPs (rs ids)? But it says about small number of SNPs. I want to get gene names based on ...
3
votes
1answer
85 views

How to select only RNA with Hetero atoms from pdb file with python?

I'm trying to separate RNA from protein in a complex protein/RNA PDB file and I want all RNA info with the hetero atoms in between the bases BUT without H20 etc. In short I want RNA part of pdb file ...
0
votes
0answers
43 views

How to compare multiple genetic profiles in Python?

I have hundreds of vcf file where each vcf file contains genome profile for a tissue. A portion of the vcf file is as follows: [ I can read each vcf file into a dataframe. So it would be hundreds of ...
4
votes
1answer
172 views

HDF5 and BioSQL solutions

I'm looking at better database/storage solutions for NCBI virus data, with all attributes particularly year and country of isolation, together with structural data, possible antibody data, T-cell data ...
1
vote
1answer
206 views

What do negative dN or dS mean in cal_dn_ds in Biopython?

I'm noobie in bioinformatics. I use cal_dn_ds from Bio.codonalign.codonseq with method 'NG86'. Sometimes I get dS=-1. What does ...
3
votes
1answer
109 views

How to learn/get started bioinformatics? [closed]

I know this is a broad question and I'm sorry if this is not the right place to post (this is my first post ever), but is there some sort of roadmap for bioinformatics? I'm an undergraduate student ...
1
vote
1answer
53 views

Retrieve ID ligand from PDB file

I have thousands of PDB files and I need to extract the following information from each of them: an ID or the name of the small molecule (ligand) present in the complex. Is there a way to do that ...
1
vote
1answer
101 views

How to get Uniprot and swissprot cross references using Biopython

I am struggling to use biopython to gather cross references such as GO annotation from Uniprot/swissprot text files ("DR" in the .txt files) using biopython. From ...
1
vote
1answer
54 views

How to allow “half windows” in biopython?

I am using Biopython to examine protein sequences including the Kyte and Doolittle hydrophobicity. However, for short sequences, this returns an empty value; the value is not allowed if the window ...
2
votes
0answers
100 views

How to get bootstrap support of phylogenetic tree?

I have used multiple sequences aligned file of protein data to generate a maximum parsimony tree, then I used the "bootstrap_trees(msa, times, tree_constructor)" ...
7
votes
2answers
183 views

Truncating branch length values of Phylogenetic tree with biopython

I have been using biopython 1.72 to display my phylogenetic tree files. Using the function 'Phylo.draw(pars_tree, branch_labels=lambda c: c.branch_length)' to ...
5
votes
1answer
133 views

How to find all variable-length seqs with an exact 5' and 3' match in a FASTA file

Context I am interested in finding all of the promotors specific to a particular sigma factor. I have identified the -35 and -10 sites from the literature, bold denotes -10, -35, binding sites: <...
7
votes
3answers
412 views

Importing GFF file with Biopython

Is there a way to import a GFF file for an organism with Biopython in the same way you can for a Genbank file? For example, ...
2
votes
0answers
762 views

Searching for start and stop codons for protein sequencing of contigs

I need to convert contigs into their respective protein sequences given a reference genome (i.e. I need to take a substring, whose position is already known on the string, and I need to locate the ...