Hi here!
I am trying to run an analysis on a set of samples, which roughly half have a low DBS count (<20). All of these samples fail at the SigProfilerAssignment step. The code I am specifically using is:
if __name__ == "__main__":
topography.runAnalyses(genome = genome,
inputDir = input_dir,
outputDir = output_dir,
jobname = "sample",
numofSimulations = 5,
transcription_strand_bias = True)
The error I get is:
--- SigProfilerAssignment for DINUCs using cosmic fit
Removing samples with zero TMB ......
Assigning COSMIC sigs or Signature Database ......
ValueError: cannot convert float NaN to integer
As mentioned, these samples do have DBSs, and I have successfully run SigProfilerAssignment on them before. So, as a way to get around this issue, I specified the activities for these samples:
if __name__ == "__main__":
topography.runAnalyses(genome = genome,
inputDir = input_dir,
outputDir = output_dir,
jobname = ""sample,
numofSimulations = 5,
transcription_strand_bias = True,
dbs_activities = /path/to/Assignment_Solution_Activities.txt)
This fixes the above error, but introduces a new error:
--- Merge real mutations with mutation probabilities
--- Merge simulated mutations with mutation probabilities
--- Fill tables/dictionaries using real mutations
object address : 0x17e866200
object refcount : 3
object type : 0x10528bf98
object type name: TypeError
object repr : TypeError("'NoneType' object is not subscriptable")
lost sys.stderr
I am not sure of the origin of this error or why it may be happening. If I run the second command, then re-run the first one (i.e., no longer specifying the "dbs_activities" option), the analysis runs fine as, I assume, the correct files have been generated for the SigProfilerAssignment to not error out, and the dbs_activities flag is not triggering the second error.
Please let me know if any additional information is needed. Thank you so much for your help!
Katie
Hi here!
I am trying to run an analysis on a set of samples, which roughly half have a low DBS count (<20). All of these samples fail at the SigProfilerAssignment step. The code I am specifically using is:
The error I get is:
As mentioned, these samples do have DBSs, and I have successfully run SigProfilerAssignment on them before. So, as a way to get around this issue, I specified the activities for these samples:
This fixes the above error, but introduces a new error:
I am not sure of the origin of this error or why it may be happening. If I run the second command, then re-run the first one (i.e., no longer specifying the "dbs_activities" option), the analysis runs fine as, I assume, the correct files have been generated for the SigProfilerAssignment to not error out, and the dbs_activities flag is not triggering the second error.
Please let me know if any additional information is needed. Thank you so much for your help!
Katie