Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Color alignments by base modification (5mC) supported by igv.js? #1650

Closed
Tracked by #166
yaarau opened this issue May 30, 2023 · 4 comments
Closed
Tracked by #166

Is Color alignments by base modification (5mC) supported by igv.js? #1650

yaarau opened this issue May 30, 2023 · 4 comments
Assignees
Milestone

Comments

@yaarau
Copy link

yaarau commented May 30, 2023

Hello,
I'd like to set my igv.js application to color the alignments by base modification (5mC). Is this possible? If so, can you please direct me to documentation how to do this? thank you!

@jrobinso
Copy link
Contributor

Not yet.

@jrobinso jrobinso self-assigned this May 30, 2023
@yaarau
Copy link
Author

yaarau commented Jun 1, 2023

Thank you.
Is it expected to be implemented soon? If so, can you please estimate when? thanks again

@jrobinso
Copy link
Contributor

jrobinso commented Jun 2, 2023

Sorry, I'm working on it but can't give you a time estimate.

@jrobinso
Copy link
Contributor

jrobinso commented Jul 9, 2024

This is supported now in the main branch, it will be included in the upcoming release. Below is a session illustrating some options for a dataset with 5mC and 6mA modifications.

{
  "genome": "hg38",
  "locus": "chr11:119094729-119094804",
  "tracks": [
    {
      "type": "alignment",
      "format": "bam",
      "url":      "https://igv-genepattern-org.s3.amazonaws.com/test/baseMods/6mA/pacbio/HG002_chr11_119076212_119102218.bam",
      "indexURL": "https://igv-genepattern-org.s3.amazonaws.com/test/baseMods/6mA/pacbio/HG002_chr11_119076212_119102218.bam.bai",
      "height": 300,
      "name": "Base modifications",
      "colorBy": "basemod",
      "groupBy": "strand"
    },
    {
      "type": "alignment",
      "format": "bam",
      "url":      "https://igv-genepattern-org.s3.amazonaws.com/test/baseMods/6mA/pacbio/HG002_chr11_119076212_119102218.bam",
      "indexURL": "https://igv-genepattern-org.s3.amazonaws.com/test/baseMods/6mA/pacbio/HG002_chr11_119076212_119102218.bam.bai",
      "height": 300,
      "name": "Base modifications - 2 Color",
      "colorBy": "basemod2",
      "groupBy": "strand",
      "baseModificationThreshold": 0
    },
    {
      "type": "alignment",
      "format": "bam",
      "url":      "https://igv-genepattern-org.s3.amazonaws.com/test/baseMods/6mA/pacbio/HG002_chr11_119076212_119102218.bam",
      "indexURL": "https://igv-genepattern-org.s3.amazonaws.com/test/baseMods/6mA/pacbio/HG002_chr11_119076212_119102218.bam.bai",
      "height": 300,
      "name": "5mC modifications - 2 Color",
      "colorBy": "basemod2:m",
      "groupBy": "strand",
      "baseModificationThreshold": 0
    }
  ]
}

@jrobinso jrobinso closed this as completed Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants