roblanf / sangeranalyseR

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

Error in writeXStringSet #89

Open nick-youngblut opened 1 year ago

nick-youngblut commented 1 year ago

If the contig includes only 1 read, then writeFasta() produces the following error:

Error in writeXStringSet(writeAlignment, file.path(outputDir, paste0(contigName, :
'x' must be an XStringSet object

It appears that writeFasta() makes the assumption that each contig object has >=1 forward and >=1 reverse read.