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

geno2proteo #49

jeroen opened this issue Aug 14, 2019 · 1 comment


Copy link

commented Aug 14, 2019

All test and examples fail in scan(). Maybe a perl issue?

# Registered S3 method overwritten by 'R.oo':
#  method        from       
#  throw.default R.methodsS3
# gnCDSF>     # the data folder in this package
# gnCDSF>     dataFolder = system.file("extdata", package="geno2proteo") 
# gnCDSF>     geneticCodeFile_line = file.path(dataFolder, 
# gnCDSF+                                     "geneticCode_standardTable_lines.txt")
# gnCDSF>     gtfFile = file.path(dataFolder, 
# gnCDSF+                 "Homo_sapiens.GRCh37.74_chromosome16_35Mlong.gtf.gz")
# gnCDSF>     DNAfastaFile =  file.path(dataFolder, 
# gnCDSF+             "Homo_sapiens.GRCh37.74.dna.chromosome.16.fa_theFirst3p5M.txt.gz")
# gnCDSF>     outputFolder = tempdir(); # using the current folder as output folder
# gnCDSF>     # calling the function.
# gnCDSF>     generatingCDSaaFile(geneticCodeFile_line=geneticCodeFile_line, 
# gnCDSF+         gtfFile=gtfFile, DNAfastaFile=DNAfastaFile, outputFolder=outputFolder)
# Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec,  : 
#   line 2 did not have 7 elements



This comment has been minimized.

Copy link
Member Author

commented Aug 16, 2019

I think the error appears after running DNAseqTranslation_CDS.perl. The msys2 version of perl somehow inserts a \r into the data which R on Windows interprets as a linebreak in read.table()

rawToChar(readBin(filenameAllCDSdnaSeqAA, raw(),n = 100))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.