snapatac2.datasets.colon#

snapatac2.datasets.colon()[source]#

Fetch five transverse colon scATAC-seq fragment datasets.

Use this helper to download and extract the colon transverse sample archive from [Zhang21]. Each returned tuple provides a sample name and the cached fragment-file path for that sample.

Returns:

Tuples containing (sample_name, fragment_file), where sample_name is a string parsed from the archive filename and fragment_file is a pathlib.Path pointing to a fragments file.

Return type:

list[tuple[str, Path]]

Examples

>>> import snapatac2 as snap
>>> samples = snap.datasets.colon()
>>> name, fragment_file = samples[0]
>>> isinstance(name, str) and fragment_file.exists()
True