Questions tagged [skbio]
scikit-bio is a general-purpose python 3 bioinformatics library.
36
questions
-1
votes
1
answer
323
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 ...
0
votes
1
answer
173
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 ...
-1
votes
2
answers
79
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)
...
0
votes
1
answer
56
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/...
0
votes
0
answers
508
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 ...
0
votes
0
answers
565
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 ...
-1
votes
1
answer
837
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,
...
1
vote
0
answers
878
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) ...
0
votes
1
answer
139
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 = ...
1
vote
0
answers
147
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 ...
0
votes
1
answer
430
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'])
...
1
vote
1
answer
460
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 ...
2
votes
1
answer
76
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 ...
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 ...
1
vote
0
answers
242
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-...
3
votes
2
answers
1k
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 ...
6
votes
2
answers
2k
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 ...
4
votes
1
answer
2k
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 ....
7
votes
1
answer
439
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
...
1
vote
1
answer
166
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!
4
votes
0
answers
773
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 ...
1
vote
1
answer
248
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 ...
1
vote
1
answer
147
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 (...
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 ...
3
votes
0
answers
72
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....
0
votes
0
answers
1k
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 ...
1
vote
2
answers
659
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 ...
0
votes
1
answer
58
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 ...
0
votes
1
answer
764
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 &...
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 : ...
2
votes
0
answers
340
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 ...
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 ...
3
votes
1
answer
616
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:...
2
votes
1
answer
456
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 ...
2
votes
2
answers
215
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 ...
2
votes
1
answer
91
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 ...