scverse / scverse/scirpy

Handle sequences with different length in logoplots

Open
#691 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
Dominant language
Python
Stars
265
Forks
50
Avg merge
9d 9h
Merged PRs (30d)
4

Description

However, when there are two different lengths of junctions of each cell, it will return an error when I plot the CDR3-motif with following code.

There's an example here how you can filter by length:
https://scirpy.scverse.org/en/latest/tutorials/tutorial_5k_bcr.html#logoplots

But this is good feedback, I think we should make it easier to make logoplots of sequences with different lengths, e.g. by automatically generating separate plots for all lengths in the input dataset.

Originally posted by @grst in #644

Contributor guide

Open the contributing guide

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 with the logoplots example in the linked 5k BCR tutorial and trace the logoplot entry point used there. Check how inputs with different junction lengths are currently handled, then verify that mixed-length input produces separate plots for each length without the existing error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.