calebclass / NanoTube

Easy NanoString data analysis
GNU General Public License v3.0
1 stars 2 forks source link

Missing value where TRUE/FALSE needed #10

Closed georgersmith99 closed 8 months ago

georgersmith99 commented 8 months ago

Hey there! I am trying to run Nanotube analysis on some nanostring data in a CSV format and am running into an issue. I'm pretty new to this so apologies if im being naive but when running this code:

dat <- processNanostringData(nsFiles = "/Users/georgesmith/Documents/INS Year 4/OND2.csv",
                             replicateCol = c('ON_D2_1', 'ON_D2_2', 'ON_D2_3'), 
                             normalization = "nSolver",
                             housekeeping = c("PGK1", "OAZ1", "TBP", "POLR2A", 
                                              "ABCF1", "SDHA", "NRDE2", "PPIA",
                                              "UBB", "STK11IP","G6PD","TBC1D10B"),
                             bgType = "t.test", bgPVal = 0.01,
                             output.format = "ExpressionSet"
                             )

i didn't use sample_data as when i tried to load my CSV file into it i'd get an empty value after. When I run this i get the error:

Loading count data...... Averaging technical replicates..... Calculating positive scale factors......Error in if (sum(dat$dict$CodeClass == "Positive") == 0) { : missing value where TRUE/FALSE needed

georgersmith99 commented 8 months ago

Hey there! I am trying to run Nanotube analysis on some nanostring data in a CSV format and am running into an issue. I'm pretty new to this so apologies if im being naive but when running this code:

dat <- processNanostringData(nsFiles = "/Users/georgesmith/Documents/INS Year 4/OND2.csv",
                             replicateCol = c('ON_D2_1', 'ON_D2_2', 'ON_D2_3'), 
                             normalization = "nSolver",
                             housekeeping = c("PGK1", "OAZ1", "TBP", "POLR2A", 
                                              "ABCF1", "SDHA", "NRDE2", "PPIA",
                                              "UBB", "STK11IP","G6PD","TBC1D10B"),
                             bgType = "t.test", bgPVal = 0.01,
                             output.format = "ExpressionSet"
                             )

i didn't use sample_data as when i tried to load my CSV file into it i'd get an empty value after. When I run this i get the error:

Loading count data...... Averaging technical replicates..... Calculating positive scale factors......Error in if (sum(dat$dict$CodeClass == "Positive") == 0) { : missing value where TRUE/FALSE needed

Never mind

georgersmith99 commented 8 months ago

Solved it myself at the time of writing, sorry for that!

Anyone who comes across the same thing, include your CodeClass column!