You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thr error message is Traceback (most recent call last):
File "", line 1, in
File "/public/home/zwliu/miniconda3/lib/python3.10/site-packages/spycone/DataSet.py", line 197, in init
self._get_gene_level()
File "/public/home/zwliu/miniconda3/lib/python3.10/site-packages/spycone/DataSet.py", line 226, in _get_gene_level
self.genelevel_symb.append(self.symbs[v[0]])
IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed
What is the reason for this and how to solve it? If it is not a model species, can the species parameter be eliminated?
The text was updated successfully, but these errors were encountered:
Hi, @yollct
`subprocess.call("wget https://zenodo.org/record/7228475/files/tutorial_alt_sorted_bc_tpm.csv?download=1 -O alt_sorted_bc_tpm.csv", shell=True)
subprocess.call("wget https://zenodo.org/record/7228475/files/tutorial_alt_genelist.csv?download=1 -O alt_genelist.csv", shell=True)
data = pd.read_csv("alt_sorted_bc_tpm.csv", sep="\t")
genelist = pd.read_csv("alt_genelist.csv", sep="\t")
geneid= list(map(lambda x: str(int(x)) if not np.isnan(x) else x, genelist['gene'].tolist()))
transcriptid = genelist['isoforms'].to_list()
dset = spy.dataset(ts=data,
transcript_id=transcriptid,
gene_id = geneid,
species=9606,
timepts=4, reps1=3)`
thr error message is Traceback (most recent call last):
File "", line 1, in
File "/public/home/zwliu/miniconda3/lib/python3.10/site-packages/spycone/DataSet.py", line 197, in init
self._get_gene_level()
File "/public/home/zwliu/miniconda3/lib/python3.10/site-packages/spycone/DataSet.py", line 226, in _get_gene_level
self.genelevel_symb.append(self.symbs[v[0]])
IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed
What is the reason for this and how to solve it? If it is not a model species, can the species parameter be eliminated?
The text was updated successfully, but these errors were encountered: