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

runCaSpER error #78

Open
baoyl818 opened this issue Nov 25, 2022 · 2 comments
Open

runCaSpER error #78

baoyl818 opened this issue Nov 25, 2022 · 2 comments

Comments

@baoyl818
Copy link

Hi, friend

when I use this good software to analyse bulk RNAseq (PE reads), when I run the following step:

final.objects <- runCaSpER(object, removeCentromere=T, cytoband=cytoband, method="iterative")

it happened the following error:

Performing recursive median filtering...
Performing HMM segmentation...
Error in DataFrame(..., check.names = FALSE) :
different row counts implied by arguments

I cannot find why. Can you please give some advice?
Thank you very much.

@kenminsoo
Copy link

I will just leave a solution in case anyone else needs it:

The problem shows up because your annotation does not have same rows as your counts.
tpm_transformed <- tpm_transformed %>% rownames_to_column("Geneid") %>% semi_join(rannotation, by = c("Geneid" = "Gene")) %>% column_to_rownames("Geneid")

You can use dplyr or some other function to make sure they have same rows.

@rustino
Copy link

rustino commented Mar 1, 2024

Try this: data <- data[match( annotation$Gene,rownames(data)), ] It's on the meningioma code

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