Questions tagged [skbio]

scikit-bio is a general-purpose python 3 bioinformatics library.

Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

I'm using PyInstaller to compile a program that uses skbio. "import skbio" is not being incorporated into the executable version. How can I solve?

I developed a python program that uses skbio (scikit-bio). The program works correctly on my computer. I used PyInstaller to compile my program and forced --hidden-import (py -m PyInstaller MYSCRIPT....
Rita Domingues's user avatar
0 votes
1 answer
124 views

ModuleNotFoundError: No module named 'skbio.stats.diversity'

I am trying to import the beta_diversity function from the skbio.stats.diversity module in Python: from skbio.stats.diversity import beta_diversity but I am encountering a ModuleNotFoundError with ...
user17818805's user avatar
1 vote
0 answers
208 views

Unable to install scikit-bio in docker container

I was trying to install scikit-bio using pipenv install scikit-bio but I was facing some Cython issues, pasted the logs below. Can you please help me on how to resolve it. I was using python 3.7 ...
harish reddy baireddy's user avatar
2 votes
2 answers
3k views

Error: cannot import name 'SpearmanRConstantInputWarning' from 'scipy.stats'

I'm getting an error when importing the skbio package on Google Colab. The error message is related to SpearmanRConstantInputWarning of the scipy.stats package. What should I do to solve this problem? ...
kvratto's user avatar
  • 89
0 votes
1 answer
1k views

2-dimensional PCoA plot with skbio

I have a Jensen-Shannon distance (JSD) matrix and I would like to visualise it with Principal Coordinate Analysis (PCoA). I obtain the JSD with Scipy, and make the PCoA with Skbio. I can successfully ...
Maria's user avatar
  • 337
0 votes
1 answer
478 views

Issues with scikit-bio on Mac M1

I tried installing scikit-bio by running conda install -c https://conda.anaconda.org/biocore scikit-bio per the documentation, but verifying the installation via python -m skbio.test yielded the ...
sharknado21's user avatar
-1 votes
2 answers
150 views

Square a matrix in python

Hello let say I have a df such as : G1 G2 VALUE SP1 SP2 1 SP1 SP3 2 SP1 SP4 3 SP2 SP3 4 SP2 SP4 5 SP3 SP4 6 how can I get a the data as square ? (i.e., have the same number of rows and columns) ...
Grendel's user avatar
  • 793
0 votes
1 answer
123 views

verification of installation of skbio

I installed the Scikit-bio python module in Windows 10. After installation, I verified the installation by running python -m skbio.test I got the following result (end part of message) ERROR AppData/...
CheolHwan0122's user avatar
1 vote
0 answers
1k views

Scikit-bio installation error in windows 10 OS, "ERROR: Failed building wheel for scikit-bio"

I want to install scikit-bio in my windows 10 OS. But whenever I ran the command pip install scikit-bio, I got the error message related with "Failed to building wheel for hdmedians". I ...
CheolHwan0122's user avatar
1 vote
1 answer
2k views

I get that there is no skbio module even though scikit-bio is successfully installed

I'm on mac, OS Catalina, and I run Python 3.8. I have installed scikit-bio successfully: But I try the test, I get that there is no module named skbio: And what I guess is expected is that when I ...
Elsa's user avatar
  • 159
-1 votes
1 answer
2k views

ImportError for skbio module

I am running Python 3 and have skbio v0.5.5 installed. Following the examples in this tutorial, I am trying to run the import statements for some skbio classes, but am getting errors. For example, ...
Asad Tan's user avatar
2 votes
0 answers
1k views

I'm trying to run skbio and keep getting 'ModuleNotFoundError: No module named 'skbio.core'

I'm trying to run skbio in my python script and keep getting the error: ModuleNotFoundError: No module named 'skbio.core.' I am on a Mac running Mojave version 10.14.3 I have tried the following: 1) ...
user2533160's user avatar
0 votes
1 answer
178 views

Error using smith-waterman from skbio 0.5.4

I'm using the wrapped version of smith-waterman from skbio (0.5.4), but i have an unspected error: _, score, _ = local_pairwise_align_ssw(protein_list[idx1], protein_list[idx2], substitution_matrix = ...
cw_cw's user avatar
  • 1
1 vote
0 answers
158 views

scikit-bio v0.5.2 not working with python 3.5 in miniconda

I am trying to run a discrete False Discovery Rate correction on my next gen data. Per the owners code I need to set up the following environment: conda create -n dsfdr2 python=3.5 numpy scipy jupyter ...
pmaes's user avatar
  • 11
0 votes
1 answer
541 views

cannot install scikit-bio in my window 7 with anaconda 3.x (64-bit)

I used the following code to install scikit-bio from Spyder 3, but it showed error. Therefore, could anyone please help? many thanks Code: import pip pip.main (['install', 'scikit-bio']) ...
Vanna's user avatar
  • 191
1 vote
1 answer
654 views

scipy hierarchy.linkage and Bray-Curtis distances not consistent [duplicate]

I am working with a set of species counts (counts) from several different sample stations (stations). I have calculated the Bray-Curtis similarity between every possible pair of sample stations using ...
user2619065's user avatar
2 votes
1 answer
91 views

Opening filehandles for use with TabularMSA in skbio

Hey there skbio team. So I need to allow either DNA or RNA MSAs. When I do the following, if I leave out the alignment_fh.close() skbio reads the 'non header' line in the except block making me ...
JTFouquier's user avatar
0 votes
1 answer
1k views

Skbio python module to support python 2

I have python 2 installed on my machine. I want to use the skbio module for some part of my code. I tried installing skbio (pip install scikit-bio) but it says it does not support python 2 it is only ...
shalini's user avatar
  • 11
1 vote
0 answers
272 views

Importing QIIME script as module, error importing from skbio

I'm trying to import a QIIME script as a module. The script works when I call it through linux cmd, but when I import the QIIME script as a module, I get the error ~/VirtualENV/lib/python2.7/site-...
Tichigan's user avatar
3 votes
2 answers
2k views

Fastest way to read a fastq with scikit-bio

I am trying to read a fastq formatted text file using scikit-bio. Given that it is a fairly large file, performing operations is quite slow. Ultimately, I am attempting to dereplicate the fastq file ...
johnchase's user avatar
  • 13.3k
7 votes
2 answers
3k views

Why is `sklearn.manifold.MDS` random when `skbio's pcoa` is not?

I'm trying to figure out how to implement Principal Coordinate Analysis with various distance metrics. I stumbled across both skbio and sklearn with implementations. I don't understand why sklearn's ...
O.rka's user avatar
  • 30.1k
5 votes
1 answer
3k views

How to get `skbio` PCoA (Principal Coordinate Analysis) results?

I'm looking at the attributes of skbio's PCoA method (listed below). I am new to this API and I want to be able to get the eigenvectors and the original points projected onto the new axis similar to ....
O.rka's user avatar
  • 30.1k
7 votes
1 answer
616 views

scikit-bio extract genomic features from gff3 file

Is it possible in scikit-bio to extract genomic features stored in a gff3 formatted file from a genome fasta file? Example: genome.fasta >sequence1 ...
holmrenser's user avatar
1 vote
1 answer
235 views

Reading from compressed FASTA bz2 file using skbio

Is it possible to read from a compressed file (e.g., FASTA bz2)? I usually use skbio.sequence.Sequence.read but don't see this option there. Thanks!
Jenya Kopylova's user avatar
4 votes
0 answers
920 views

How can I make a cca triplot using scikit-bio (python)?

How can I make a triplot for CCA using scikit-bio (python)? I'm trying to make a triplot from canonical correspondence analysis; for example: This should have points for both samples and species ...
John's user avatar
  • 1,345
1 vote
1 answer
310 views

Write multiple fasta entries using scikit-bio write

I am trying to read FASTA file entries using scikit-bio and then write certain entries back out to another file if it meets some requirement. The issue I am running into is that the .write methods ...
johnchase's user avatar
  • 13.3k
1 vote
1 answer
165 views

TabularMSA replacement for Alignment (scikit-bio 0.4.1.dev0)

I would like to read a PHYLIP alignment (FASTA format), update the sequence labels and write results back to a file. How can I edit the following lines to use TabularMSA in scikit-bio 0.4.1.dev0 (...
Jenya Kopylova's user avatar
0 votes
2 answers
2k views

Cannot run pyLDAvis. Getting Error : ImportError: cannot import name PCoA

I have created LDA model using gensim. Now, I wanted to visualise it using pyLDAvis library but getting : ImportError: cannot import name PCoA Can anyone help me with this or suggest some ...
newuser's user avatar
  • 113
3 votes
0 answers
81 views

Error when running skbio.stats.ordination.CA: 'LinAlgErr: SVD did not converge'

I would like to use Emperor to create an interactive PCoA plot outside the context of QIIME. To do this I need to generate an ordination file from my data matrix, like the results provided by skbio....
Nastassia Patin's user avatar
0 votes
0 answers
2k views

How to find dissimilarity matrix (Plant communities) in python?

I have a plant community matrix as numpy array where rows are species and columns are communities species 1,2,3 [[ 0 13 2 0 11 0 12 5 0 0] species 4,5,6 [ 0 97 1 5 ...
Bruce's user avatar
  • 565
1 vote
2 answers
746 views

scikit-bio python module not getting installed on windows 7

Scikit-bio package is not getting installed. I have numpy 1.9.1. I tried installing from command prompt C:\Python34\Scripts>pip install C:/Users/mgi14-9419/Downloads/scikit-bio-0.4.0.tar.gz I am ...
Bruce's user avatar
  • 565
0 votes
1 answer
78 views

Output gene positions from GenBank file

Is it possible to output the gene location for a CDS feature or do I need to parse the 'location' or 'complement' field myself? For example, seq = Sequence.read(genbank_fp, format='genbank') for ...
Jenya Kopylova's user avatar
0 votes
1 answer
831 views

scikit-bio not working after installation

I have installed scikit-bio on my mac and when I run python -m skbio.test, I get the following error: File "/macqiime/anaconda/lib/python2.7/site-packages/skbio/io/tests/test_util.py", line 17, in &...
Jason's user avatar
  • 1
6 votes
2 answers
3k views

Trouble installing scikit-bio on Windows

When attempting to install the scikit-bio toolkit via pip on Windows XP using Python 2.78 and Visual C++ 2008 Express Edition, the process is interrupted with the following message issued by VC: cl : ...
maurobio's user avatar
  • 1,480
2 votes
0 answers
375 views

scikit-bio installation test failure, FAIL: _plot_box_data() should return a dictionary for Line2D's

Installed scikit-bio on Mac, with dependencies for scikit-bio installed. Received error below. Traceback included. Followed instruction on https://pypi.python.org/pypi/scikit-bio for skbio test and ...
Ronald Miller's user avatar
5 votes
1 answer
1k views

future.utils.six not found when trying to import skbio modules

I just installed numpy and scikit-bio using pip3. If I import DNASequence in an interactive session I get an error message: >>> from skbio.sequence import DNASequence Traceback (most recent ...
John Conery's user avatar
3 votes
1 answer
675 views

#error “SSE2 instruction set not enabled” when installing scikit-bio via pip

I want to install the python library scikit-bio via pip using following command: sudo pip install scikit-bio on my system: uname -a Linux grassgis 3.2.0-69-generic-pae #103-Ubuntu SMP Tue Sep 2 05:...
Johannes's user avatar
  • 1,034
2 votes
1 answer
502 views

Needleman-Wunsch implementation gives different alignments in cogent and in skbio

The implementation in skbio gives an odd result compared to the result that you would get from the implementation in pycogent. from cogent.align.algorithm import nw_align as nw_align_cogent from ...
El Developer's user avatar
  • 3,335
2 votes
2 answers
238 views

determine length of polypurine tract

how to determine/ find the longest poly-purine tract in any genome (consecutive As and Gs with no interspersed C or T, or vice versa) and this needs to be on the E. coli genome . is it to figure out ...
user3923728's user avatar
2 votes
1 answer
101 views

can warn.filterwarnings be set to act locally when testing with nosetests

I'm running into some trouble with filtering warnings in python tests when using nosetests. I'd like my call to warn.filterwarnings to be local only to a single file, but instead if any of the files I ...
gregcaporaso's user avatar