Questions tagged [python]

python is a programming language, widely used in bioinformatics

87 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
302 views

Using dssp after chain extraction

I have a list of PDB IDs with realtive chains IDs that have to be extracted, and then run on dssp. For the single chain extraction I tried several methods, such as: ...
saiden's user avatar
  • 171
6 votes
0 answers
977 views

changing blast parameters using NCBIWWW module

I have found a blog post with a script that I would like to use for my current research project: link The script is incredibly fast and produces a smooth conservation plot. In the blog post, the ...
bluescholar1212's user avatar
4 votes
0 answers
50 views

How can I use statistics to compare microbial phenotypes?

Note: this question has also been asked on Biostars I am currently trying to create a theoretical argument that a microbe's phenotype can affect gene expression in their host. I have 5 species of ...
pythonbeginner44's user avatar
3 votes
0 answers
50 views

Issue creating CNV plot from WES data

I received Whole Exome Sequencing data from an NGS company (CARIS, specifically). I received R1 and R2 FASTQ files, a BAM file aligned to hg38, and a VCF file. I used CNVPytor to create a CNV plot (...
InterestingQuestions44's user avatar
3 votes
0 answers
158 views

How to concatenate 2 `mdata` of `muon` package?

I used muon(https://github.com/scverse/muon) for single cell Multimodal omics analysis. How to concatenate 2 mdata from ...
Dan Li's user avatar
  • 141
3 votes
0 answers
37 views

How are BLAST record scores calculated in biopython

Can someone explain how the score is calculated for Bio.Blast.Record.Description? For example, if Record.Description.num_alignments is >1, is ...
Tim Kirkwood's user avatar
3 votes
0 answers
62 views

How to use hgvs to project a variant list on a given protein sequence string?

I have the following protein structural variance list: ...
0x90's user avatar
  • 1,427
3 votes
1 answer
74 views

How to extract and visualize sequence logos from CNN kernels?

I created a basic CNN architecture using Tensorflow to classify transcription factor binding sites. My aim is to somehow extract and visualize sequence logos from the convolutional kernels. The model ...
Károly Pákozdi's user avatar
3 votes
1 answer
860 views

Finding common and unique data set by comparing two files based on their column and to split the columns multiple strings to print in output

I have very large sizes tab-delimited .vcf files and want to match these two / or 3 files based on their position and print to a new .csv file File structures: File_1: tab-delimited file (.vcf) ...
Nitha's user avatar
  • 73
2 votes
0 answers
35 views

How to perform liftover from 38 to 37 in R?

I have some gwas summary statistics in GRCh38 that I want to lift to GRCh37. I am trying to liftover in R using this code: ...
DN1's user avatar
  • 45
2 votes
0 answers
123 views

Extracting positions from PAF files in order to extract sequences from a Fastq file with Python

I have used Minimap2 to create a paf file by aligning a Fastq file against itself. Now from this Paf file I can see where the reads overlap, and I want to take these positions, and use them to extract ...
Newprogrammer's user avatar
2 votes
0 answers
161 views

How to make a UMAP for single cell data and color cells by average expression of a list of genes in scanpy?

I would like to make a UMAP where the cells are colored by the average expression of the bulk signature genes but I am not confident that I did it correctly. I would like to use scanpy for it. I did ...
pythonbeginner's user avatar
2 votes
0 answers
103 views

pyScenic CLI for ctx is giving error: Not a single module loaded

Hi I ran pyScenic's ctx via the command in command prompt: ...
Yihua's user avatar
  • 21
2 votes
0 answers
145 views

Drawing synteny using CIRCOS from progressive MAUVE alignment

I am using Mauve app to align two whole genomes. I've aligned these genomes (gbk files) with the progressive Mauve aligner, and I got sp.sslist, sp.xmfa, sp.guide_tree,sp.backbone file, sp.bbcols etc ...
Umar's user avatar
  • 135
2 votes
1 answer
162 views

finding motifs in fasta file with multiple sequences

I am able to find matching motifs on a single sequence, as well as their position as shown below : ...
thole's user avatar
  • 143
2 votes
0 answers
151 views

Writing to .cif from BioPandas

My question is twofold. First, I've run into an issue working with .cif files and pandas dataframes. With BioPandas, I can read a .pdb file into a dataframe and then go the opposite direction, writing ...
Brookspj's user avatar
2 votes
0 answers
75 views

Naming conventions for kegg nodes with multiple genes

So I'm downloading XML files from Kegg using BioConductor and and I'm running into a problem. If we look at HIF-1 signaling pathway we see the node growth factor (GF) on the left hand side, we can ...
Travasaurus's user avatar
2 votes
1 answer
59 views

Is there a way to extract spike sequence from a Sars-CoV-2 complete genome (preferably in Python)?

I have a complete genome sequence of a Sars-CoV-2 variant, but I am only interested in the Spike sequence? I should note that I am not a biologist (nor bioinformatics). The complete genome looks like ...
mac179's user avatar
  • 121
2 votes
0 answers
355 views

Snakemake fails because it cannot create logs inside a read-only Singularity Container

I am using Snakemake from inside a Singularity container. Because of that, the directory that Snakemake wants to log to cannot be created, and I get an ...
Chris Stenkamp's user avatar
2 votes
0 answers
270 views

How to get the GO information for all the human genes?

I would like to retrieve a list of all the human genes and their proteins’ functional classification. The Gene type attribute on ensembl.org is not specific ...
0x90's user avatar
  • 1,427
2 votes
0 answers
168 views

Trouble optimizing Five Parameter Logistic (5PL) Standard Curve for ELISA data using Python

I am writing a Python script to automate a 5PL Standard Curve for ELISA data, using an XLSX file template. I am using pandas dataframes to hold the 96 wells as ...
Jake Steele's user avatar
2 votes
1 answer
134 views

working with cutadapt

I'm working with ion torrent data where I apply the program cutadapt. I'm analyzing ITS seq data, as well as Matk. When I'm using cutadapt, I search the information for this genes, and built new ...
Sofia's user avatar
  • 351
2 votes
0 answers
63 views

Number of reactions per metabolic pathway

What is the quickest way to calculate the number of chemical reactions present in each pathway for a given organism and which online database such as Kegg, MetaCyc,Reactome is more helpful/reliable ...
MMphysics's user avatar
2 votes
0 answers
291 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)" ...
Sidra Younas's user avatar
2 votes
0 answers
161 views

Post ipyrad filtering of SNP loci from GBS, based on SNP quality

I want to use SNPs produced by Ipyrad, which is a python script for RADseq, using maize genome data via RAxML to examine the monophyly of a highly-variable focal species and its phylogenetic ...
Peter Pearman's user avatar
2 votes
0 answers
277 views

How to measure euclidean distance between points with vtkDelaunay3D package?

I'm working with python vtkDelaunay3D (scipy.spatial.Delaunay) package for a special purpose. Normally the package is used for triangulation/tetrahedralisation. How do I measure euclidean distance ...
Sara's user avatar
  • 767
2 votes
1 answer
83 views

Why does samtools mpileup sometimes include ref bases (other than ',' or '.')?

This is my first post here. I can think of no way of giving an easily reproducible example, as per the stack ethos. SO apologies in advance and any feedback on question format appreciated. I have ...
Liam McIntyre's user avatar
1 vote
0 answers
30 views

Need help with binding DB API

...
Neeleshwar Pandey's user avatar
1 vote
0 answers
25 views

What are some good miRNA databases?

I am writing a project proposal for my boss and it is on codon usage bias in the dystrophin protein and the spectrin-like repeats found in a hmmscan file using the longest dystrophin isoform protein ...
Rachel Sweeney's user avatar
1 vote
0 answers
18 views

Adding step size to cross validation in Python package lifelines

I'm using the Python package lifelines to build a CoxPH model where I reduce the step size to 0.1, like so: ...
skubali's user avatar
  • 11
1 vote
1 answer
93 views

bcbio run not running samples in parallel

Sorry for the cross post but I'm not getting a response on bcbio github: I'm trying to run bcbio on 20 samples and it's only running one at a time as it steps through the yaml seemingly. I'm using ...
t_creasman's user avatar
1 vote
0 answers
58 views

SNP How to detect regions of erratic pairwise alignment?

I have clusters of DNA sequences that contain some mutations. All the sequences in a cluster should contain the same mutations. As the mutations aren't known, those clusters of sequences were pairwise-...
Fravadona's user avatar
  • 181
1 vote
0 answers
91 views

How to use hashsolo for demultiplexing hashtags?

I am trying to use hashsolo and I want to make sure that I have done things correctly. I did the below: ...
pythonbeginner's user avatar
1 vote
0 answers
29 views

GDC API: Obtain the Objective Power (or Magnification) of a WSI file

I've been trying to find out a way to retrieve the Objective Power (or Magnification) of a Whole Slide Image file without downloading it first. I've seen that some WSI's Objective power might be 40x ...
Martim Afonso's user avatar
1 vote
0 answers
84 views

From SMILE get Amber force in Python

I have a list of SMILES of small molecules and I want to be able to simulate these molecules with an Amber force field in Python. Currently, I use RDkit to convert the smile into a PDB file: ...
Anton B's user avatar
  • 11
1 vote
0 answers
300 views

How to plot average gene expression in scanpy?

I would like to make a UMAP where the cells are colored by the average expression of the bulk signature genes but I am not confident that I did it correctly. I would like to use scanpy for it. I did ...
pythonbeginner's user avatar
1 vote
1 answer
309 views

Reading a Fast5-file with Python

I am trying to extract data from fast5-file with python 3.9.13 in Ubuntu. I have found a library "fast5_research"(This package comprises an API to HDF containers used by the research groups ...
Shwarz's user avatar
  • 21
1 vote
0 answers
66 views

Visualise multiple disappearing pdb files in Pymol

I have a sequence of pdb files which I want to load in pymol window so that it gives an impression of a video. I am using cmd.load function in a loop and deleting the loaded file in the next step. But ...
vipul-chem's user avatar
1 vote
0 answers
29 views

I want to map TFBS on to the sequences from dataset containing 8448 (210 base) sequences. its not giving all the hits I need

I want to map TFBS (transcription factor binding sites) on to the sequences from dataset containing 8448 (210 base) sequences, but it is not giving all the hits I need ...
Bioinfo_nerd's user avatar
1 vote
1 answer
70 views

Advise on building an effect ML model for predicting important proteins for drug response

I want to create a model to predict proteins which could be associated with drug response in cancer cell lines. I have cell line proteomics data, with compound screening data they have gained for a ...
LJM's user avatar
  • 11
1 vote
1 answer
63 views

AttributeError [in fastStructure's chooseK.py]: module 'vars' has no attribute 'insum'

I've been working with the fastStructure program and am on the step of analyzing model complexity using the provided chooseK.py script. I have been running into the following error: ...
Anita's user avatar
  • 11
1 vote
1 answer
646 views

tensorflow nn_model for DNA sequences: Matrix size-incompatible: In[0]: [2,1], In[1]: [784,300]

Hope anyone can help a beginner here. I'm building a proof-of concept tensorflow classifier for DNA sequences. However, the NN model does not let through train and test vectors saying the matrix size ...
monade's user avatar
  • 11
1 vote
0 answers
39 views

HGVS python package : How to parse complex insertions?

In HGVS package, how to create more complex variants ? I just wonder how can I parse more complex insertions such as those : ...
jossefaz's user avatar
  • 111
1 vote
0 answers
67 views

Converting miRNA names to miRBase version IDs

I have a list of miRNAs IDs (2000-2500) that I want to find miRBase IDs for them. For example: hsa-miR-106a ---> hsa-miR-106a-5p hsa-miR-373* --> hsa-miR-373-5p hsa-miR-33 --> hsa-miR-33a-5p ...
Sadaf's user avatar
  • 11
1 vote
0 answers
25 views

Download COX1 (COI) gene via biopython using accessions for entire mitochondrial genomes

I have a list of accessions for the the entire mitochondrial genomes for big cats. I need to download the COX1 genes for each of these accessions. Here is one accession and here is a link to its COX1 ...
Glubbdrubb's user avatar
1 vote
0 answers
29 views

In CIRIquant output, which column shows the expression level of circular?

I am running CIRIquant on Ubuntu 16.04 LTS following the instruction which indicated on https://ciriquant-cookbook.readthedocs.io/en/latest/de.html. I got .GTF file ...
Mohammad's user avatar
1 vote
0 answers
44 views

AttributeError: 'FeatureDB' object has no attribute 'strand'

It appers when a gene has a negative strand then I need to reverse the sequence. Unfortunately, I got the following error: ...
user3523406's user avatar
1 vote
0 answers
646 views

How to get a consensus sequence from a nanopore fastq files?

I am new in bioinformatic field. I would like to know a way to generate a consensus sequence from nanopore fastq files (fastq files demultiplexed). I usually generate a consensus sequence with "...
Gerald Vasquez Aleman's user avatar
1 vote
0 answers
813 views

Python script to calculate properties of amino acids and storing them in matrix

I want to make a python script that can get as input sequence of N amino acids, and the output is a matrix of Nx6 containing 6 features. The features are: Computed volume Hydrophobicity Surface ...
Anas Jamshed's user avatar
1 vote
0 answers
85 views

3d model of a protein via nucleotide sequence

I really appreciate @Matteo Ferla's detailed answer to my previous question. I've already tested several tools to know if a mutation can cause a modification in the function of protein or not. There ...
dachi's user avatar
  • 91