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

pybedtools.bedtool.Bedtool.sort() #408

Open
Accompany0313 opened this issue May 3, 2024 · 1 comment
Open

pybedtools.bedtool.Bedtool.sort() #408

Accompany0313 opened this issue May 3, 2024 · 1 comment

Comments

@Accompany0313
Copy link

Hi,

First of all - thank you for your amazing work. pybedtools has been super useful for my research so far and I am very grateful.

I have a problem now, when I use pybedtools bedtool. Bedtool. From_dataframe (blacklist_bed_df).sort (), I don't when the incoming parameters g can run normally, but when I passed in parameter g, For example blacklist_bed = pybedtools. Bedtool. Bedtool. From_dataframe (blacklist_bed_df).sort (g = chrom_size_path), will appear unable to run. I haven't thought of a good solution to this problem. I hope to get your help. Thank you very much.

Here is my chrom_size file:
hg38.txt

@daler
Copy link
Owner

daler commented Nov 4, 2024

@Accompany0313 sorry for such a late reply, but if this is still an issue can you provide the file that you're working with?

For example, the chromsizes file might not have the same chromosomes as your input, or the input might malformed somehow.

You could use Bedtool.from_dataframe(blacklist_bed_df).saveas("example.bed") to get a file I could use for debugging.

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