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

Change the genomic.features parameters to custom-made features in goregion function #16

Open
AphroditeLibra opened this issue Mar 13, 2023 · 2 comments

Comments

@AphroditeLibra
Copy link

Hi
I try to analyze genomic regions analysis with goregion function.

I want to change the genomic.features parameters to my own custom-made features (e.g. Island, N_shelf, etc.) from the column “Relation to UCSC CpG Island” in the annotation file. I tried to include these features in the code but it didn’t work. How do I perform goregion analysis with these features?

Your help would be highly appreciated.

Best regards

@bphipson
Copy link
Collaborator

The way that goregion works is to extract the CpGs underlying the regions and then use the gometh statistical framework. At the moment we only allow subsetting to the column "UCSC_RefGene_Group" and you would need to manually subset the CpGs underlying the regions to allow for custom-made features from other columns of the annotation prior to running gometh.

@JovMaksimovic
Copy link
Collaborator

Another way to restrict your regions based on your custom-made features is to overlap your custom-feature Granges object with your with your DMRs Granges. Then you can use the resulting Granges as input to GOregion.

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

3 participants