wyguo / ThreeDRNAseq

A pipeline for differential expression and differential alternative splicing analysis
https://github.com/wyguo/ThreeDRNAseq
GNU General Public License v3.0
60 stars 27 forks source link

Time serie in wrong order[Help] #34

Open bourbous opened 1 year ago

bourbous commented 1 year ago

Hi I am having trouble with the time serie, my points are never in chronological order. I renamed my points (0, 1h, 6h etc.) into T1 T2 T3 T4 as the example. This did not fix the issue. I ordered them in the metadata file, this did not fix it neither. Could you help ? Thanks a lot

Clara

Screen Shot 2022-09-12 at 1 58 20 PM

metadata.csv

wyguo commented 1 year ago

Hi On the data generation page, how did you select the "Select factor column/columns of interest (multi-select allowed)"?

bourbous commented 1 year ago

Thank you for your reply. I selected it as attached, is it good ?

— Clara Richet-Bourbousse SECTION GENOMIQUE ENVIRONEMENTALE ET EVOLUTIVE INSTITUT DE BIOLOGIE DE L’ENS 46 rue d'Ulm • 75 005 PARIS PH +33 1 44 32 35 23 E bourbous@ @.>b @.>io.ens.psl.eu @.***> www.ibens.ens.fr http://www.ibens.ens.fr/

On Sep 12, 2022, at 2:34 PM, Wenbin Guo @.***> wrote:

Hi On the data generation page, how did you select the "Select factor column/columns of interest (multi-select allowed)"?

— Reply to this email directly, view it on GitHub https://github.com/wyguo/ThreeDRNAseq/issues/34#issuecomment-1243675378, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3A2LO27EOFK225BY3CW2MTV54PMBANCNFSM6AAAAAAQKM2KSQ. You are receiving this because you authored the thread.

wyguo commented 1 year ago

Could you please provide a screenshot of your selection at the step "Step 2: Select factors of experimental design"? From the csv table, I couldn't figure out how did you select the columns in the App for the analysis.

bourbous commented 1 year ago

Here it is. I have 4 genotypes and 5 time points. Thanks

— Clara Richet-Bourbousse SECTION GENOMIQUE ENVIRONEMENTALE ET EVOLUTIVE INSTITUT DE BIOLOGIE DE L’ENS 46 rue d'Ulm • 75 005 PARIS PH +33 1 44 32 35 23 E bourbous@ @.>b @.>io.ens.psl.eu @.***> www.ibens.ens.fr http://www.ibens.ens.fr/

On Sep 12, 2022, at 2:46 PM, Wenbin Guo @.***> wrote:

Could you please provide a screenshot of your selection at the step "Step 2: Select factors of experimental design"? From the csv table, I couldn't figure out how did you select the columns in the App for the analysis.

— Reply to this email directly, view it on GitHub https://github.com/wyguo/ThreeDRNAseq/issues/34#issuecomment-1243690194, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3A2LOYIP7EDD2RDKYDNEN3V54Q4FANCNFSM6AAAAAAQKM2KSQ. You are receiving this because you authored the thread.

wyguo commented 1 year ago

Hi, Sorry, I didn't see any screenshots. Did you attached any image in your message?

bourbous commented 1 year ago

Yes I can see it in my sent message, I try one more time (factor = Time, Genotype, Bio rep = Replicate, quantify = quant.files)

— Clara Richet-Bourbousse SECTION GENOMIQUE ENVIRONEMENTALE ET EVOLUTIVE INSTITUT DE BIOLOGIE DE L’ENS 46 rue d'Ulm • 75 005 PARIS PH +33 1 44 32 35 23 E bourbous@ @.>b @.>io.ens.psl.eu @.***> www.ibens.ens.fr http://www.ibens.ens.fr/

On Sep 12, 2022, at 3:01 PM, Wenbin Guo @.***> wrote:

Hi, Sorry, I didn't see any screenshots. Did you attached any image in your message?

— Reply to this email directly, view it on GitHub https://github.com/wyguo/ThreeDRNAseq/issues/34#issuecomment-1243707174, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3A2LO7FTAZ2TVTHMGCSDWLV54SSTANCNFSM6AAAAAAQKM2KSQ. You are receiving this because you authored the thread.

wyguo commented 1 year ago

Please try factor=Genotype,Time; Biorep= Replicate. When you perform the time-series analysis, select the genotype as the groups for time-points. It should solve the problem

bourbous commented 1 year ago

Thank you, yes now the time points are in order !

I am encountering a second problem though. When I run step 3 time series the screen become grey and the analysis stops. On R I can see this :

Gene level 3D trend analysis ... (click "x" to close) (2022-09-12 17:22:12)

Limma-voon to estimate mean-vriance trend ... Coefficients not estimable: WT.ns2 Fit a basic linear model ... Coefficients not estimable: WT.ns2 Fit the contrast model ... [1] "Contrast groups: X3h1.ns1; h1.3.ns1; WT.ns1; X3h1.ns2; h1.3.ns2; WT.ns2”

I have 3 questions :

Sorry to bother you, we would like to analyze many samples with your great tool so we really want to make it work.

Best regards,

— Clara Richet-Bourbousse SECTION GENOMIQUE ENVIRONEMENTALE ET EVOLUTIVE INSTITUT DE BIOLOGIE DE L’ENS 46 rue d'Ulm • 75 005 PARIS PH +33 1 44 32 35 23 E bourbous@ @.>b @.>io.ens.psl.eu @.***> www.ibens.ens.fr http://www.ibens.ens.fr/

On Sep 12, 2022, at 3:07 PM, Wenbin Guo @.***> wrote:

Please try factor=Genotype,Time; Biorep= Replicate. When you perform the time-series analysis, select the genotype as the groups for time-points. It should solve the problem

— Reply to this email directly, view it on GitHub https://github.com/wyguo/ThreeDRNAseq/issues/34#issuecomment-1243714597, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3A2LO7TTR2HFUIEHYQYATTV54TJRANCNFSM6AAAAAAQKM2KSQ. You are receiving this because you authored the thread.

wyguo commented 1 year ago

Hi,

  1. From your metatable information, I think your experimental design does not fit to time-series trend analysis in the 3D RNA-seq App. Time trend analysis is designed for, for example, we have three groups, group1, group2 and group3. In each group, we have the same number of time points T1, T2, T3, T4 and T5. Then can use a curve to fit the time trends and compare how the trends change over time between the groups. But in your case, you have four genotypes and in each genotype, the numbers of time points are different, for example, in 2h1, you only have two time points and in WT you have five time points. I think time-series trend is not the best way for your data analysis. I would recommend you use the normal contrast group settings (The 3D Analysis page on the App) for your data analysis.
  2. You need to finish the analysis and go to the final page to save results and generate report. Then all the results and reports will be saved.
  3. If you are using the App on our server, you need to restart the analysis everytime. If you are using a local version by running ThreeDRNAseq R package to start the App, you can upload the intermediate_data.RData and start the analysis where you saved the results.
bourbous commented 1 year ago

Dear Wenbin

I am sorry I have a last troubleshooting issue.

I cannot change the working directory, I tried using the setwd function on R before launching the 3D app but it does not work. The issue is that it creates a folder in MacintoshHD/private/tmp on my Mac, but then it cannot find the pictures to generate the report (I checked and all the required pictures are in the correct folders under the path ../../../private/tmp/ etc.), but somehow the app cannot access them. Here is an example of error message in the report :

Error in knitr::include_graphics(fig2insert): Cannot find the file(s): "../../../private/tmp/file73ba20b2210/figure/Heatmap DE genes.png"

Is there a way to specify a working directory other than MacintoshHD/private/tmp/ ? Or is this due to another issue ?

Thank you for your help,

Best regards

— Clara Richet-Bourbousse SECTION GENOMIQUE ENVIRONEMENTALE ET EVOLUTIVE INSTITUT DE BIOLOGIE DE L’ENS 46 rue d'Ulm • 75 005 PARIS PH +33 1 44 32 35 23 E bourbous@ @.>b @.>io.ens.psl.eu @.***> www.ibens.ens.fr http://www.ibens.ens.fr/

On Sep 12, 2022, at 7:04 PM, Wenbin Guo @.***> wrote:

Hi,

From your metatable information, I think your experimental design does not fit to time-series trend analysis in the 3D RNA-seq App. Time trend analysis is designed for, for example, we have three groups, group1, group2 and group3. In each group, we have the same number of time points T1, T2, T3, T4 and T5. Then can use a curve to fit the time trends and compare how the trends change over time between the groups. But in your case, you have four genotypes and in each genotype, the numbers of time points are different, for example, in 2h1, you only have two time points and in WT you have five time points. I think time-series trend is not the best way for your data analysis. I would recommend you use the normal contrast group settings (The 3D Analysis page on the App) for your data analysis. You need to finish the analysis and go to the final page to save results and generate report. Then all the results and reports will be saved. If you are using the App on our server, you need to restart the analysis everytime. If you are using a local version by running ThreeDRNAseq R package to start the App, you can upload the intermediate_data.RData and start the analysis where you saved the results. — Reply to this email directly, view it on GitHub https://github.com/wyguo/ThreeDRNAseq/issues/34#issuecomment-1244032856, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3A2LO3XB2STXZ24X5PLINDV55PDNANCNFSM6AAAAAAQKM2KSQ. You are receiving this because you authored the thread.

wyguo commented 1 year ago

Hi, When did you install the ThreeDRNAseq R package? If it is an old version, could please uninstall and then reinstall it again? I fixed an issue about the workdir several weeks ago.