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

Issues with Reproducible tutorial #85

Open
jspychalla opened this issue Nov 2, 2022 · 2 comments
Open

Issues with Reproducible tutorial #85

jspychalla opened this issue Nov 2, 2022 · 2 comments

Comments

@jspychalla
Copy link

Hello,

I am trying to run the reproducible example from :

When I run the SangerAlignment function below

my_sangerAlignment <- new("SangerAlignment",
inputSource = "ABIF",
processMethod = "REGEX",
ABIF_Directory = parentDir,
REGEX_SuffixForward = "_[0-9]F.ab1$",
REGEX_SuffixReverse = "
[0-9]
_R.ab1$",
TrimmingMethod = "M1",
M1TrimmingCutoff = 0.0001,
M2CutoffQualityScore = NULL,
M2SlidingWindowSize = NULL,
baseNumPerRow = 100,
heightPerRow = 200,
signalRatioCutoff = 0.33,
showTrimmed = TRUE,
refAminoAcidSeq = "SRQWLFSTNHKDIGTLYFIFGAWAGMVGTSLSILIRAELGHPGALIGDDQIYNVIVTAHAFIMIFFMVMPIMIGGFGNWLVPLMLGAPDMAFPRMNNMSFWLLPPALSLLLVSSMVENGAGTGWTVYPPLSAGIAHGGASVDLAIFSLHLAGISSILGAVNFITTVINMRSTGISLDRMPLFVWSVVITALLLLLSLPVLAGAITMLLTDRNLNTSFFDPAGGGDPILYQHLFWFFGHPEVYILILPGFGMISHIISQESGKKETFGSLGMIYAMLAIGLLGFIVWAHHMFTVGMDVDTRAYFTSATMIIAVPTGIKIFSWLATLHGTQLSYSPAILWALGFVFLFTVGGLTGVVLANSSVDIILHDTYYVVAHFHYVLSMGAVFAIMAGFIHWYPLFTGLTLNNKWLKSHFIIMFIGVNLTFFPQHFLGLAGMPRRYSDYPDAYTTWNIVSTIGSTISLLGILFFFFIIWESLVSQRQVIYPIQLNSSIEWYQNTPPAEHSYSELPLLTN",
minReadsNum = 2,
minReadLength = 20,
minFractionCall = 0.5,
maxFractionLost = 0.5,
geneticCode = GENETIC_CODE,
acceptStopCodons = TRUE,
readingFrame = 1,
processorsNum = 2)

I get the following error message:

Error in IdClusters(dist, type = "both", showPlot = FALSE, processors = processorsNum, :
unused arguments (type = "both", showPlot = FALSE)

This same error appears when I run

rawDataDir <- system.file("extdata", package = "sangeranalyseR")
parentDir <- file.path(rawDataDir, 'Allolobophora_chlorotica', 'ACHLO')

ACHLO_contigs <- SangerAlignment(ABIF_Directory = parentDir,
REGEX_SuffixForward = "_[0-9]F.ab1$",
REGEX_SuffixReverse = "
[0-9]
_R.ab1$")

The version of R I am working in is 4.2.2.

@jspychalla
Copy link
Author

I realize that the SangerAlignment function is not present even though I have the package loaded. Is there a way to fix this?
Thank you :)

@Kuanhao-Chao
Copy link
Collaborator

Hi @jspychalla,

Please excuse the delay.

DECIPHER changed the IdClusters function to TreeLine. But this issue was solved in 3.15 release. Which version of sangeranalyseR are you using?

Please upgrade it by running

if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("sangeranalyseR")

And you still cannot load the function, please send me an email to [email protected]

Best,
Kuan-Hao

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