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

Using a gRanges object for addtargets() #1

Open
lisannemout opened this issue Nov 3, 2022 · 0 comments
Open

Using a gRanges object for addtargets() #1

lisannemout opened this issue Nov 3, 2022 · 0 comments

Comments

@lisannemout
Copy link

Hi,

I'm trying to provide a GRanges object in the addTargets() function, instead of selecting for a TE based on its repname

The GRanges object looks like this, and is in the same format as the example in ?addTargets().

head(RepeatMasker_L1PB1_g4_gr)
GRanges object with 6 ranges and 2 metadata columns:
seqnames ranges strand | repname te_id
|
[1] chr1 20026982-20028115 - | L1PB1 3
[2] chr1 23991057-23991397 - | L1PB1 4
[3] chr1 61541780-61543701 - | L1PB1 1
[4] chr1 62468379-62470547 + | L1PB1 1
[5] chr1 62739588-62743573 + | L1PB1 1
[6] chr1 62743682-62744050 + | L1PB1 1

seqinfo: 24 sequences from an unspecified genome; no seqlengths

When I try to add the GRanges object to the guideset using the addtarget function i get the following error.

gs <- addTargets(gs,
targets = RepeatMasker_L1PB1_g4_gr)
Error in match(x, table, nomatch = 0L) : 'match' requires vector arguments

Currently using Repguide version 0.0.1.5

Any suggestions on how to resolve this?

Thanks!

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

1 participant