---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-1-3ef63cce8835> in <module>()
----> 1 get_ipython().run_cell_magic('time', '', 'base = "/project/flatiron2/analysis_SHOGUN/data/references/linear"\nfna = "{}/rep82_combined.fna".format(base)\ntax = "{}/rep82_combined.tax".format(base)\nwith open(fna) as inf:\n with open(fna[:-4] + ".fixed.fna", "w") as outf:\n for line in inf:\n line = line.rstrip()\n if line[0] == ">":\n row = line.split()\n outf.write(row[0] + "\\n")\n else:\n outf.write(line + "\\n")')
/export/scratch/miniconda3/envs/analysis_SHOGUN/lib/python3.5/site-packages/IPython/core/interactiveshell.py in run_cell_magic(self, magic_name, line, cell)
2113 magic_arg_s = self.var_expand(line, stack_depth)
2114 with self.builtin_trap:
-> 2115 result = fn(magic_arg_s, cell)
2116 return result
2117
<decorator-gen-59> in time(self, line, cell, local_ns)
/export/scratch/miniconda3/envs/analysis_SHOGUN/lib/python3.5/site-packages/IPython/core/magic.py in <lambda>(f, *a, **k)
186 # but it's overkill for just that one bit of state.
187 def magic_deco(arg):
--> 188 call = lambda f, *a, **k: f(*a, **k)
189
190 if callable(arg):
/export/scratch/miniconda3/envs/analysis_SHOGUN/lib/python3.5/site-packages/IPython/core/magics/execution.py in time(self, line, cell, local_ns)
1183 else:
1184 st = clock2()
-> 1185 exec(code, glob, local_ns)
1186 end = clock2()
1187 out = None
<timed exec> in <module>()
FileNotFoundError: [Errno 2] No such file or directory: '/project/flatiron2/analysis_SHOGUN/data/references/linear/rep82_combined.fna'