-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Hello!
I'm trying to run CANOPUS for tutorial files, and after processing them with Sirius I get the "PermissionError" (see below) afrer I run the "C = Canopus(sirius="sirius_rosmarin")". Could you please tell me what could be the reason for this error?
Best wishes,
Vera
PermissionError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 C = Canopus(sirius="sirius_rosmarin")
File ~\Downloads\canopus_treemap-master\canopus_treemap-master\canopus\api.py:26, in Canopus.init(self, sirius, gnps)
24 self.cleanNorm()
25 self.probabilityThreshold=0.33
---> 26 self.sirius = SiriusWorkspace(sirius)
27 self.Quant = self.sirius.make_quant()
28 self.conditions = dict()
File ~\Downloads\canopus_treemap-master\canopus_treemap-master\canopus\ontology.py:639, in SiriusWorkspace.init(self, rootdir, ontology)
637 if Path(rootdir).is_dir():
638 self.load_ontology_index()
--> 639 self.load_compounds()
640 print("%d compounds in workspace " % len(self.compounds))
641 else:
File ~\Downloads\canopus_treemap-master\canopus_treemap-master\canopus\ontology.py:771, in SiriusWorkspace.load_compounds(self)
769 break
770 cmp = Compound(name, compound_dir)
--> 771 siriusInstance = SiriusInstance(compound_dir)
772 if siriusInstance.canopusfp is not None:
773 self.compounds[name] = cmp
File ~\Downloads\canopus_treemap-master\canopus_treemap-master\canopus\ontology.py:512, in SiriusInstance.init(self, dirname)
510 def init(self, dirname):
511 self.dirname = dirname
--> 512 self.__parse()
File ~\Downloads\canopus_treemap-master\canopus_treemap-master\canopus\ontology.py:516, in SiriusInstance.__parse(self)
514 def __parse(self):
515 self.__parse_scores()
--> 516 self.__parse_canopus()
517 self.__parse_npc()
518 self.__parse_msfile()
File ~\Downloads\canopus_treemap-master\canopus_treemap-master\canopus\ontology.py:547, in SiriusInstance.__parse_canopus(self)
545 self.filename = canopusPath.name
546 elif canopusZipPath.exists():
--> 547 with zipfile.ZipFile(canopusZipPath) as myzip:
548 path = zipfile.Path(myzip, at=filename[0] + "_" + filename[1] + ".fpt")
549 if path.exists():
File ~\AppData\Local\Programs\Python\Python310\lib\zipfile.py:1249, in ZipFile.init(self, file, mode, compression, allowZip64, compresslevel, strict_timestamps)
1247 while True:
1248 try:
-> 1249 self.fp = io.open(file, filemode)
1250 except OSError:
1251 if filemode in modeDict:
PermissionError: [Errno 13] Permission denied: 'sirius_rosmarin\236_rosmarin_mzml_237\canopus'