fastqcr icon indicating copy to clipboard operation
fastqcr copied to clipboard

Running FastQC in R from a Windows Machine

Open qpmnguyen opened this issue 7 years ago • 11 comments

Hi!

I installed the package in R and tried to run it (using the fastqc() function) but there was a check on whether or not my system was unix based and gave an error.

I was wondering if either fastqcr does not support running from a windows machine or I just accidentally installed a version that is only for unix machines (I did not use the function fastqc_install)

Thanks!

qpmnguyen avatar Sep 27 '17 19:09 qpmnguyen

Hello,

I have the same problem, did you solved it? (I did not used fastqc_install either)

Best

tbersez avatar Mar 29 '18 09:03 tbersez

I have not been able to solve this issue either. I think it's because the R package is a wrapper for the unix/linux versions of fastqc and not the windows version so the R-package doesn't work with windows computers. I just use fastqc from the command line instead of the R package.

Hope this helps!

qpmnguyen avatar Apr 02 '18 18:04 qpmnguyen

I'm also having this problem, would love if there were a fix! I may be able to just do my work on another PC but obviously that's a bit inconvenient.

drescs avatar May 09 '19 17:05 drescs

The error is still happening: Error in .check_if_unix() : Unix system (MAC OSX or Linux) required.

VicSales avatar Aug 07 '19 02:08 VicSales

any updates on this?

arodzh-sudo avatar Aug 26 '19 13:08 arodzh-sudo

I don't know why Windows isn't supported in this package. Would you accept a pull request to add Windows support? It doesn't appear to be difficult but perhaps there is some reason I am unaware of?

At the very least I suggest removing the .check_if_unix() to allow people to at least use Windows Subsystem for Linux. As a hack to get it running I installed FastQC on my Windows Subsystem for Linux and then got fastqcr::fastqc() running by writing over .check_if_linux() inside fastqcr with this code:

.check_if_unix <<- function() {
  return(NULL)
}
assignInNamespace(".check_if_unix", .check_if_unix, ns = "fastqcr")

Then I can run:

fastqcr::fastqc("fastq_path", fastqc.path = "wsl.exe /path_to_wsl_fastqc_install/fastqc")

And it works fine! wsl.exe /path_to_wsl_fastqc_install/fastqc runs FastQC inside Windows Subsystem for Linux (wsl.exe).

rdinnager avatar Jan 14 '20 09:01 rdinnager

@rdinnager a pull request is very welcome! thank you in advance for your contribution

kassambara avatar Jan 14 '20 22:01 kassambara

Any progress on this? I'd also like to be able to run this package on Windows.

pfrombris avatar Mar 09 '20 10:03 pfrombris

I could not find any solution, but there are alternatives to FastQC in r for Windows. you can try one of these. Doing the same job with some differences in the plot. Rqc::rqcReport() QuasR::qQCReport() systemPipeR::seeFastq() ShortRead::report()

rbabaei82 avatar Apr 05 '20 16:04 rbabaei82

Hello I find that the problem remains, is there any progress to adress this issue?

Thanks in advanced!

ulazcanoCICbioGUNE avatar Sep 14 '23 11:09 ulazcanoCICbioGUNE

The error is still happening: Error in .check_if_unix() : Unix system (MAC OSX or Linux) required.

Any update on this? could you resolve this?

Thanks in advance!

Sheficm avatar Sep 24 '23 20:09 Sheficm