does pybedtools closest support multiple databases like bedtools? · Issue #163 · daler/pybedtools · GitHub
More Web Proxy on the site http://driver.im/
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
k_nearest=snp_bed.closest([gene_model_subtracted_bed, genes_only_sorted_bed],
k=k_number,
names=['novel_mapped_tx', 'official_annotations'],
D='ref', # Include SIGNED distances from SNP based on the ref genomet='all', # Return all members of a distance "tie"mdb='each', # Return `k_number` of neighboors for EACH `names`
)
This is the error I am getting:
pybedtools.helpers.BEDToolsError:
Command was:
bedtools closest -t all -names novel_mapped_tx official_annotations -mdb each -k 10 -b /tmp/pybedtools.eieijdz9.tmp -a snp_bed.bed -D ref
Error message was:
***** ERROR: Number of database name tags given does not match number of databases. *****
Is it possible to give multiple "B" files in pybedtools? It seems to enforce that only a single *arg is passed.
Any help would be awesome!
Gus
PS: I also tried just passing in a string with the two file paths, but it tried to open them as if it were a single path declaration which borks of course.
The text was updated successfully, but these errors were encountered:
As of v0.7.5 this works (also see #156) . . . but only if the list contains filename strings rather than BedTool objects. I will fix this so it detects BedTool objects as well, and while I'm working on it, might as well support mixes of BedTool objects and string filenames.
In the meantime, try modifying your example to:
k_nearest=snp_bed.closest(
[
gene_model_subtracted_bed.fn,
genes_only_sorted_bed.fn
],
k=k_number,
names=['novel_mapped_tx', 'official_annotations'],
D='ref', # Include SIGNED distances from SNP based on the ref genomet='all', # Return all members of a distance "tie"mdb='each', # Return `k_number` of neighboors for EACH `names`
)
I'll keep this issue open until I add support for lists of BedTool objects.
I am trying to run something like this:
This is what I am doing:
This is the error I am getting:
Is it possible to give multiple "B" files in pybedtools? It seems to enforce that only a single
*arg
is passed.Any help would be awesome!
Gus
PS: I also tried just passing in a string with the two file paths, but it tried to open them as if it were a single path declaration which borks of course.
The text was updated successfully, but these errors were encountered: