STAR alignment on Windows
2
0
Entering edit mode
5 weeks ago
tryseq • 0

I'm sorry this is a very beginner level question, but I was wondering if I can run the STAR aligner on a Windows machine? I do have access to a Linux remotely and have used STAR that way in the past, but can I run it on my laptop if I have python installed? (In an attempt to align my data faster by using 2 machines)

RNA-seq STAR • 536 views
0
Entering edit mode

STAR is very memory hungry, so unless the reference genome is small, or you have a really good laptop (32Gb of RAM or more), you won't be able to use STAR with the laptop. For example, STAR needs ~30Gb for mapping using the human genome as reference.

0
Entering edit mode

Oh I see. I forgot about that part of STAR. I only have 16 Gb of RAM, and need to align to the mouse genome, which I'm assuming will be also quite memory heavy (but not as much as the human genome). Thank you for your help!

3
Entering edit mode
5 weeks ago

Use the Windows Subsystem for Linux and treat it like a typical linux install. If you're doing any bioinformatics on a Windows machine, you'll want to get acquainted with it.

2
Entering edit mode

STAR can not work with the NTFS filesystem!

So the data should be in ext4 partition in WSL2.

But it is not easy to mount an ext partition in WSL2 so far (need to be on Windows 10 Build 20211 or higher to access this feature. You can join the Windows Insiders Program to get the latest preview builds.).

Updated: From STAR source code:

"Exiting because of FATAL ERROR: could not create FIFO file " + tmpFifo + "\n"

"SOLUTION: check the if run directory supports FIFO files.\n"

"If run partition does not support FIFO (e.g. Windows partitions FAT, NTFS), "

"re-run on a Linux partition, or point --outTmpDir to a Linux partition.\n"

0
Entering edit mode

I was not aware of that, great point.

0
Entering edit mode

That is very intriguing! I did not know that existed. Even if I can't get around the RAM problem, I am going to set that up and try to use it!

0
Entering edit mode

16 GB might be enough for mouse, but yeah, WSL works with 98% of things now, the major exception being containers like Docker/Singularity.

3
Entering edit mode
5 weeks ago
Gordon Smyth ★ 2.7k

As far as I know, STAR doesn't run under Windows 10.

Would you consider another aligner? Rsubread has been compared favorably to STAR in performance and runs very nicely under Windows:

Rsubread doesn't need any unix subsystem or any third-party software except for R. You just install it as an R package. It works the same under Unix, Windows 10 or Mac. It has relatively low memory demands. I find Rsubread as fast on my Windows 10 laptop as on my institution's linux systems, unless I start using a large number of linux cores simultaneously.