ZhenxingGuo0015 / TRESS

Toobox for RNA Methylation Sequencing Analysis
GNU General Public License v3.0
8 stars 3 forks source link

Windows不支持'mc.cores' > 1 #6

Open junjunlab opened 1 year ago

junjunlab commented 1 year ago

Hi, thanks for this great tool. I got a error when I call TRESS_DMRfit function for differential peak analysis, here is the error information:

DMR.fit = TRESS_DMRfit(IP.file = IP.file,
                       Input.file = Input.file,
                       Path_To_AnnoSqlite = Path_sqlit,
                       variable = variable,
                       model = model,
                       InputDir = InputDir,
                       OutputDir = OutputDir,
                       experimentName = "DOXvsDMSO")

##### Divid the genome into bins and obtain bin counts...
Time used to obtain bin-level data is: 
9.763366
##### Step 1: Call candidate DMRs...
Merge bumps from different replicates...
The number of candidates is: 
47020
Time used in Step 1 is: 
1.88935
##### Step 2: Model fitting on candidates...
[1] "Start to estimate preliminary MLE ..."
Error in mclapply(seq_len(nrow(Ratio)), iMLE, X, Y, sx, sy, Ratio, D,  : 
   Windows不支持'mc.cores' > 1
In addition: Warning message:
In .merge_two_Seqinfo_objects(x, y) :
  Each of the 2 combined objects has sequence levels not in the other:
  - in 'x': GL456210.1, GL456211.1, JH584296.1
  - in 'y': MT, JH584297.1
  Make sure to always combine/compare objects based on the same reference
  genome (use suppressWarnings() to suppress this warning).

Thanks for your help!

MusculusMus commented 1 year ago

I see the same problem on Windows. Is there an option not to use it (mc.cores)?

##### Divid the genome into bins and obtain bin counts...
Time used to obtain bin-level data is: 
3.315192
##### Step 1: Call candidate DMRs...
Merge bumps from different replicates...
The number of candidates is: 
31875
Time used in Step 1 is: 
18.08995
##### Step 2: Model fitting on candidates...
[1] "Start to estimate preliminary MLE ..."
Error in mclapply(seq_len(nrow(Ratio)), iMLE, X, Y, sx, sy, Ratio, D,  : 
  'mc.cores' > 1 is not supported on Windows
ZhenxingGuo0015 commented 1 year ago

Sorry for my long-delayed reply. We have just updated TRESS to make it compatible with Windows. Please download the latest development version TRESS 1.7.1. Thank you again for trying TRESS!