roblanf / sangeranalyseR

functions to analyse sanger sequencing reads in R
MIT License
96 stars 24 forks source link

Forward reads only #92

Open Nicfall opened 1 year ago

Nicfall commented 1 year ago

Hi,

I have only forward reads in my working directory, and I get the same error as presented here:

https://github.com/roblanf/sangeranalyseR/issues/78#issuecomment-1527502753

test.contigs <- SangerAlignment(ABIF_Directory=parent.dir, REGEX_SuffixForward = "*_F.ab1$")

ERROR [2023-10-02 13:19:16] PARAMETER_VALUE_ERROR
'REGEX_SuffixReverse' must be character type.
DEBUG [2023-10-02 13:19:16]    >> For more information, please run 'object'.
DEBUG [2023-10-02 13:19:16]    >> Run 'object@objectResults@readResultTable' to check the results of each Sanger reads

Anyone have any idea how to get it to work with forward reads only? I have version 1.11.0

Nicfall commented 1 year ago

Some more info - I removed the .ab1 reverse files from the ACHLO example directory & got the same error ACHLO_contigs <- SangerAlignment(ABIF_Directory = parentDir, REGEX_SuffixForward = "_[0-9]*_F.ab1$")

ERROR [2023-10-02 13:33:44] PARAMETER_VALUE_ERROR
'REGEX_SuffixReverse' must be character type.
DEBUG [2023-10-02 13:33:44]    >> For more information, please run 'object'.
DEBUG [2023-10-02 13:33:44]    >> Run 'object@objectResults@readResultTable' to check the results of each Sanger reads

& keeping in the Reverse text in the command gives a much longer error, I've just kept the end of it here ACHLO_contigs <- SangerAlignment(ABIF_Directory = parentDir, REGEX_SuffixForward = "_[0-9]*_F.ab1$", REGEX_SuffixReverse = "_[0-9]*_R.ab1$")

SUCCESS [2023-10-02 13:34:47] #############################################################
SUCCESS [2023-10-02 13:34:47] ######## 'SangerAlignment' S4 instance is created !! ########
SUCCESS [2023-10-02 13:34:47] #############################################################
ERROR [2023-10-02 13:34:47] CONTIG_NUMBER_ZERO_ERROR
The number of your total contig is 0.
Please check your name matching parameters.

What am I doing wrong 😢