scverse / scverse/SnapATAC2

snap.pp.import_data with list of fragment files and list of files containing whitelist barcodes

Open
#247 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement :sparkles:
Dominant language
Python
Stars
323
Forks
43
PR merge metrics
No merged PRs in 30d

Description

Thank you for developing this tool.

SnapATAC2 version: 2.5.3

I have a set of fragment files with a matching set of whitelisted barcodes files (the whitelisting was done via other means) which I would like to import with snap.pp.import_data(). However, while the fragment_file and file parameters of the function accept lists of file locations as input the whitelist parameter does not.

Would it be possible to add that functionality?

Would you recommend using a for loop to add the whitelisted barcodes for each sample in the snap.pp.import_data() function or would it be preferable to ignore the whitelist parameter and filter out cells after generating the list of anndata objects?
I have over 100 samples, so I am looking for computational efficacy but I am a novice at python coding and have never used Rust.

Thank you very much.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the snap.pp.import_data API and how its fragment_file and file list inputs are paired. Trace the whitelist parameter handling and determine how matching whitelist files should be associated with each sample. Done means list-valued whitelists work consistently for multiple samples without requiring a per-sample loop.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
bioinformatics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.