Coder Social home page Coder Social logo

Comments (11)

jjGG avatar jjGG commented on May 28, 2024 1

Hello Juliana,

Thanks for your comment here. Since the main developer of prolfqua is out of office for a while, I try to help you. From the listed error it looks to me that your raw-file names are the issue.

Are you starting the analysis with the proteinGroups.txt file or with some other input to prolfqua?

Could you maybe share the top 100 lines of your input?

Can you confirm that the vignette (comparing two groups) is running for you?

Best regards
jonas

from prolfqua.

jjGG avatar jjGG commented on May 28, 2024 1

perfect. Thanks for trying and using prolfqua. If you struggle please open again an issue.

from prolfqua.

jrhougland avatar jrhougland commented on May 28, 2024

Hi Jonas,

Thank you for reaching out. I have attached a csv file which shows the first 100 lines of our data set after using the tidyMQ_ProteinGroups function. I believe the vignette is running, but is there a way I can confirm that? I did install the prolfqua package with the vignettes.

Thanks,

Juliana
proteinGroups_ex.csv

from prolfqua.

jjGG avatar jjGG commented on May 28, 2024

Hello Juliana,

Your "startdata" looks good after reading in with the tidyMQ_proteinGroup function.

Now at this point it is important to have the "annotation" file correct.

It should have the same tab-separated columns as in the example and very important, the raw.file names in the raw.file column have to match your sample names from the proteinGroups.txt
e.g.:
10_pic01
11_bn50
12_bn57
13_bn58
14_bn60
15_bn59
16_bn54
17_bn53
18_bn55
19_bn56
20_bn43
22_pic02
23_bn48
24_bn49
25_bn52
26_bn51

In the Grouping or Condition column you would then specify the groups that you are comparing!

I hope this helps.
best regards
jonas

from prolfqua.

jrhougland avatar jrhougland commented on May 28, 2024

I believe the annotation file is correct, please find it attached here. Then, I tried to inner join the annotation and proteinGroups file by performing:

startdata <- inner_join(annot, data, by = c("sample" = "raw.file"))

All before the "adata" creation work, it is at this step where the error is coming:

adata <- setup_analysis(startdata, config)

I'm not sure what the issue is, because the raw.file is a character vector as it needs to be for the sampleName.

Thank you for your help,

Juliana

MQ_metadataALL2.xlsx

from prolfqua.

jjGG avatar jjGG commented on May 28, 2024

Hello Juliana,

Ideally - You add a column that is the same in both tables. In your case the "raw.file" column is missing in the annotation file. Also "sample" column is recommended to have the labels!
Be aware, that you will also "loose" all the files where you do not have group or visit or batch specified as later on when you will define the atable and specify the contrasts you need to concretely specify what you are going to compare with what.

best regards
jonas

from prolfqua.

jrhougland avatar jrhougland commented on May 28, 2024

So the "sample" column in the annotation file should be renamed as "raw.file"? I did not have any issues with inner joining the files originally with different header names. Yes, I understand that we will lose data where there is no group or visit or batch identifier, which is okay for our purposes!

Thank you,

Juliana

from prolfqua.

jjGG avatar jjGG commented on May 28, 2024

I did not test this yet. I guess I will try to look into it later today and send you a brief R-snipet that should work for your annotation and for the first lines of your startdata.
I also understand that the inner_join should work here as you do it, still the SampleName column (or Name column) is missing in my opinion.

best regards
jonas

from prolfqua.

jrhougland avatar jrhougland commented on May 28, 2024

Thank you Jonas, I will also try to rename the column with SampleName and see if that makes a difference.

Thanks,

Juliana

from prolfqua.

jjGG avatar jjGG commented on May 28, 2024

Hello Juliana,

Here a little code snipet with innput that does the job on your sample data.
Best regards
jonas

prolfqua_githubIssues.zip

from prolfqua.

jrhougland avatar jrhougland commented on May 28, 2024

Thank you! This script worked and was very helpful.

from prolfqua.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.