erhard-lab / grandR

R package for nucleotide conversion sequencing data analysis
Other
9 stars 2 forks source link

Error in dimnames(x) €= on length of "dimnames' [1] not equal to array extent #8

Closed Lygeri-Sakellaridi closed 2 years ago

Lygeri-Sakellaridi commented 2 years ago

Teresa and I get this error when simulating kinetics. I sent the scripts by email. Screenshot 2022-05-13 at 13 45 05

teresa-rummel commented 2 years ago

I found the source of this error. The colnames for s and d changed. So we need to change that in the input of the function to: s = GetAnalysisTable(sars)$kinetics.Mock.Synthesis, d = log(2)/GetAnalysisTable(sars)$kinetics.Mock.Half-life

Lygeri-Sakellaridi commented 2 years ago

Nice, thanks. I went on einstein to start them but I see you did already 😁 So we just until they're finished.

Best,

Lygeri


Von: teresa-rummel @.***> Gesendet: Samstag, 14. Mai 2022 10:55:45 An: erhard-lab/grandR Cc: Lygeri Sakellaridi; Author Betreff: Re: [erhard-lab/grandR] Error in dimnames(x) €= on length of "dimnames' [1] not equal to array extent (Issue #8)

I found the source of this error. The colnames for s and d changed. So we need to change that in the input of the function. to: s = GetAnalysisTable(sars)$kinetics.Mock.Synthesis, d = log(2)/GetAnalysisTable(sars)$kinetics.Mock.Half-life

— Reply to this email directly, view it on GitHubhttps://github.com/erhard-lab/grandR/issues/8#issuecomment-1126674252, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKW4HDJ4TGKMX25D6O42DULVJ5TBDANCNFSM5V3FBZEQ. You are receiving this because you authored the thread.Message ID: @.***>

Lygeri-Sakellaridi commented 2 years ago

Also: you wrote "sars". Does that mean GetAnalysisTable(grandr.object) still doesn't work? As in, passing the argument to the function.


Von: teresa-rummel @.***> Gesendet: Samstag, 14. Mai 2022 10:55:45 An: erhard-lab/grandR Cc: Lygeri Sakellaridi; Author Betreff: Re: [erhard-lab/grandR] Error in dimnames(x) €= on length of "dimnames' [1] not equal to array extent (Issue #8)

I found the source of this error. The colnames for s and d changed. So we need to change that in the input of the function. to: s = GetAnalysisTable(sars)$kinetics.Mock.Synthesis, d = log(2)/GetAnalysisTable(sars)$kinetics.Mock.Half-life

— Reply to this email directly, view it on GitHubhttps://github.com/erhard-lab/grandR/issues/8#issuecomment-1126674252, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKW4HDJ4TGKMX25D6O42DULVJ5TBDANCNFSM5V3FBZEQ. You are receiving this because you authored the thread.Message ID: @.***>

teresa-rummel commented 2 years ago

Also: you wrote "sars". Does that mean GetAnalysisTable(grandr.object) still doesn't work? As in, passing the argument to the function. ____ Von: teresa-rummel @.> Gesendet: Samstag, 14. Mai 2022 10:55:45 An: erhard-lab/grandR Cc: Lygeri Sakellaridi; Author Betreff: Re: [erhard-lab/grandR] Error in dimnames(x) €= on length of "dimnames' [1] not equal to array extent (Issue #8) I found the source of this error. The colnames for s and d changed. So we need to change that in the input of the function. to: s = GetAnalysisTable(sars)$kinetics.Mock.Synthesis, d = log(2)/GetAnalysisTable(sars)$kinetics.Mock.Half-life — Reply to this email directly, view it on GitHub<#8 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKW4HDJ4TGKMX25D6O42DULVJ5TBDANCNFSM5V3FBZEQ. You are receiving this because you authored the thread.Message ID: @.>

It works. I just tried it without the function call at the beginning. In our function I used grandr.object instead of sars.