Skip to content

Issue with cooltools.api.snipping.pileup() compatibility with bioframe/core/construction.py", line 150 #462

@haleybianchi

Description

@haleybianchi

Hi There,

I am attempting to call cooltools.api.snipping.pileup(clr,features_df=peak_df , flank=300_000), where :

peak_df = pd.read_csv(f"ctcf.enhancer.promoters/{peak}.bed", sep="\t", names=['chrom', "start", "end"]), as per the cooltools feature_df requirements. I am not passing in a view_df, but when the API attempts to construct one, I get an error :
File "conda/envs/matrix/lib/python3.8/site-packages/bioframe/core/construction.py", line 229, in make_viewframe
view_df = from_any(regions, name_col=view_name_col, cols=cols)
File "conda/envs/matrix/lib/python3.8/site-packages/bioframe/core/construction.py", line 150, in from_any
raise ValueError(f"Unknown input format: {type(regions)}")
ValueError: Unknown input format: <class 'NoneType'>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions