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

Could not resolve to contig ID #1

Open
Xieeeee opened this issue Oct 14, 2021 · 3 comments
Open

Could not resolve to contig ID #1

Xieeeee opened this issue Oct 14, 2021 · 3 comments

Comments

@Xieeeee
Copy link

Xieeeee commented Oct 14, 2021

Hi,
Thanks for providing this tool and the exciting CUT&TAG-pro. When I try to run the example, it will raises an error 'thread 'main' panicked at 'Could not resolve to contig ID', src/fragment.rs:32:23'. The issue is gone when running chr1 only (via --onlyone). I thought it fails to convert chromosome name to id, but I am not sure how to handle that.

The completed log message is ⬇️

2021-10-13T16:29:51.946Z INFO carina::file > Found File w/ tag "model" at "/home/scChromHMM/example1/model_2.txt"
2021-10-13T16:29:51.947Z INFO schrom::hmm > Read HMM model paramers: Found { #states: 2, #assays: 3 }
2021-10-13T16:29:51.947Z INFO carina::file > Found File w/ tag "common_cells" at "/home/scChromHMM/example1/cells.txt"
2021-10-13T16:29:51.952Z INFO schrom::hmm > Found 7201 cells in common assay, first cell=E2L1:AAACGCTGTAACCAGG
2021-10-13T16:29:51.955Z INFO carina::file > Found File(s) w/ tag "anchors" at ["/home/scChromHMM/example1/k27ac.txt", "/home/scChromHMM/example1/k27me3.txt", "/home/scChromHMM/example1/k4me1.txt"]
2021-10-13T16:29:51.983Z INFO schrom::hmm > Found 3 assays with [19, 22, 32] cells and [2465, 3706, 3699] anchors
2021-10-13T16:29:51.984Z INFO carina::file > Found File(s) w/ tag "fragments" at ["/home/scChromHMM/example1/h3k27ac_fragments.tsv.gz", "/home/scChromHMM/example1/h3k27me3_fragments.tsv.gz", "/home/scChromHMM/example1/h3k4me1_fragments.tsv.gz"]
2021-10-13T16:29:52.008Z INFO schrom::hmm > Found total 22 chromosomes
2021-10-13T16:29:52.008Z INFO schrom::hmm > Starting forward backward
thread 'main' panicked at 'Could not resolve to contig ID', src/fragment.rs:32:23

Thanks for any suggestions!

@Xieeeee
Copy link
Author

Xieeeee commented Apr 7, 2022

Hi,
Following up to see whether I can get some suggestions, thanks!

@k3yavi
Copy link
Member

k3yavi commented Apr 7, 2022

Hi @Xieeeee ,

Thanks for reaching out, your intuition is correct that it's failing to convert chromosome name to id, reason being, the tools is designed by default to work with all 22 chromosomes and when run with the test data it fails since test data has fragments from only chromosome 1. We added the flag --onlyone to inform the tool to perform segmentation on chromosome 1 only and that's why you don't see error when you run the tool with --onlyone flag. Hope it helps.

@Xieeeee
Copy link
Author

Xieeeee commented Apr 7, 2022

Hi @k3yavi ,
Really appreciate your answer. I will try running on my toy data soon and will let you know how it goes.
Cheers

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