Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'map' object is not subscriptable #47

Closed
lurebgi opened this issue Jul 24, 2019 · 8 comments
Closed

TypeError: 'map' object is not subscriptable #47

lurebgi opened this issue Jul 24, 2019 · 8 comments

Comments

@lurebgi
Copy link

lurebgi commented Jul 24, 2019

Hi, I came across this error
TypeError: 'map' object is not subscriptable

INFO 1834545 Clusters read
INFO Creating meta-clusters based on shared sequences: 61291
99% (61244 of 61291) |################# | Elapsed Time: 7:19:39 ETA: 0:00:00INFO 512 metaclusters from 33960 sequences
INFO 512 clusters found
INFO counts after: 19759492
INFO # sequences after: 61375
INFO Solving multi-mapping events in the network of clusters
INFO Number of loci: 1834545
N/A% (0 of 512) | | Elapsed Time: 0:00:00 ETA: --:--:--Traceback (most recent call last):
File "/scratch/luohao/software/seqcluster/bin/seqcluster", line 10, in
sys.exit(main())
File "/scratch/luohao/software/seqcluster/lib/python3.6/site-packages/seqcluster/command_line.py", line 28, in main
cluster(kwargs["args"])
File "/scratch/luohao/software/seqcluster/lib/python3.6/site-packages/seqcluster/make_clusters.py", line 76, in cluster
clusLred = _cleaning(clusL, args.dir_out)
File "/scratch/luohao/software/seqcluster/lib/python3.6/site-packages/seqcluster/make_clusters.py", line 294, in _cleaning
clus_obj = reduceloci(clusL, path)
File "/scratch/luohao/software/seqcluster/lib/python3.6/site-packages/seqcluster/detect/metacluster.py", line 77, in reduceloci
_write_cluster(c, clus_obj.clus, clus_obj.loci, n_cluster, path)
File "/scratch/luohao/software/seqcluster/lib/python3.6/site-packages/seqcluster/detect/metacluster.py", line 102, in _write_cluster
print("\t".join(pos[:4] + [str(len(cluster[idc].loci2seq[idl]))] + [pos[-1]]), file=out_handle, end="")
TypeError: 'map' object is not subscriptable
100% (61291 of 61291) |##################| Elapsed Time: 7:20:41 Time: 7:20:41
100% (512 of 512) |######################| Elapsed Time: 0:00:14 Time: 0:00:14

Thanks,
Luohao

@lpantano
Copy link
Owner

lpantano commented Jul 24, 2019 via email

@lurebgi
Copy link
Author

lurebgi commented Jul 25, 2019 via email

@lpantano
Copy link
Owner

thank you, I am working on this issue, although I see for the numbers that the sequences sparsed a lot over the genome and there are a big number of loci compared to sequences. That normally indicates is not a typical small RNA data.

Can I know what kit was used to produce this data, or the size distribution of the reads? is there a peak at any size?

Due to this, the debugging time can be larger because it is taking a lot of time to go through all those loci. But I will try to find the issue.

Thank you

@lurebgi
Copy link
Author

lurebgi commented Jul 26, 2019 via email

@lpantano
Copy link
Owner

lpantano commented Jul 26, 2019 via email

@lurebgi
Copy link
Author

lurebgi commented Jul 26, 2019 via email

@lpantano
Copy link
Owner

Hi,

did you try to run that file to see if it breaks as well. It is working with that file for me, just want to confirm is not a user-specific error.

Thanks

@lpantano
Copy link
Owner

This is now fixed, version 1.2.7 should work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants