r3fang / SnapATAC

Analysis Pipeline for Single Cell ATAC-seq
GNU General Public License v3.0
301 stars 125 forks source link

"error: the following snap files do not contain PM session" #101

Closed hjack123 closed 4 years ago

hjack123 commented 4 years ago

what could be the reason that I have finished snaptools snap-add-pmat but x.sp = addPmatToSnap(x.sp); still says snap file dosent contain PM session?

r3fang commented 4 years ago

What is the error message?

Sent from my iPhone

On Sep 22, 2019, at 5:34 AM, hjack123 notifications@github.com wrote:

what could be the reason that I have finished snaptools snap-add-pmat but x.sp = addPmatToSnap(x.sp); still says snap file dosent contain PM session?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

hjack123 commented 4 years ago

snaptools snap-add-pmat --snap-file A549.snap --peak-file ../snapATAC/snap.atac.peaks.combined.bed

Traceback (most recent call last): File "/home/data/apps/anaconda3/envs/py27/bin/snaptools", line 38, in parse_args()
File "/home/data/apps/anaconda3/envs/py27/lib/python2.7/site-packages/snaptools/parser.py", line 176, in parse_args verbose=args.verbose) File "/home/data/apps/anaconda3/envs/py27/lib/python2.7/site-packages/snaptools/add_pmat.py", line 170, in snap_pmat f = h5py.File(snap_file, "a", libver='earliest'); File "/home/data/apps/anaconda3/envs/py27/lib/python2.7/site-packages/h5py/_hl/files.py", line 394, in init swmr=swmr) File "/home/data/apps/anaconda3/envs/py27/lib/python2.7/site-packages/h5py/_hl/files.py", line 184, in make_fid fid = h5f.create(name, h5f.ACC_EXCL, fapl=fapl, fcpl=fcpl) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py/h5f.pyx", line 105, in h5py.h5f.create IOError: Unable to create file (unable to open file: name = 'A549.snap', errno = 17, error message = 'File exists', flags = 15, o_flags = c2)

r3fang commented 4 years ago

Can you use snap-del to remove pmat? And addd it again?

Sent from my iPhone

On Sep 22, 2019, at 9:43 AM, hjack123 notifications@github.com wrote:

snaptools snap-add-pmat --snap-file A549.snap --peak-file ../snapATAC/snap.atac.peaks.combined.bed

Traceback (most recent call last): File "/home/data/apps/anaconda3/envs/py27/bin/snaptools", line 38, in parse_args() File "/home/data/apps/anaconda3/envs/py27/lib/python2.7/site-packages/snaptools/parser.py", line 176, in parse_args verbose=args.verbose) File "/home/data/apps/anaconda3/envs/py27/lib/python2.7/site-packages/snaptools/add_pmat.py", line 170, in snap_pmat f = h5py.File(snap_file, "a", libver='earliest'); File "/home/data/apps/anaconda3/envs/py27/lib/python2.7/site-packages/h5py/_hl/files.py", line 394, in init swmr=swmr) File "/home/data/apps/anaconda3/envs/py27/lib/python2.7/site-packages/h5py/_hl/files.py", line 184, in make_fid fid = h5f.create(name, h5f.ACC_EXCL, fapl=fapl, fcpl=fcpl) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py/h5f.pyx", line 105, in h5py.h5f.create IOError: Unable to create file (unable to open file: name = 'A549.snap', errno = 17, error message = 'File exists', flags = 15, o_flags = c2)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

hjack123 commented 4 years ago

Hi when I did that it says

snaptools snap-del --snap-file A549.snap --session-name PM

error: --session-name PM does not exist in A549.snap

On Sun, Sep 22, 2019 at 9:57 AM Rongxin Fang notifications@github.com wrote:

Can you use snap-del to remove pmat? And addd it again?

Sent from my iPhone

On Sep 22, 2019, at 9:43 AM, hjack123 notifications@github.com wrote:

snaptools snap-add-pmat --snap-file A549.snap --peak-file ../snapATAC/snap.atac.peaks.combined.bed

Traceback (most recent call last): File "/home/data/apps/anaconda3/envs/py27/bin/snaptools", line 38, in parse_args() File "/home/data/apps/anaconda3/envs/py27/lib/python2.7/site-packages/snaptools/parser.py", line 176, in parse_args verbose=args.verbose) File "/home/data/apps/anaconda3/envs/py27/lib/python2.7/site-packages/snaptools/add_pmat.py", line 170, in snap_pmat f = h5py.File(snap_file, "a", libver='earliest'); File "/home/data/apps/anaconda3/envs/py27/lib/python2.7/site-packages/h5py/_hl/files.py", line 394, in init swmr=swmr) File "/home/data/apps/anaconda3/envs/py27/lib/python2.7/site-packages/h5py/_hl/files.py", line 184, in make_fid fid = h5f.create(name, h5f.ACC_EXCL, fapl=fapl, fcpl=fcpl) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py/h5f.pyx", line 105, in h5py.h5f.create IOError: Unable to create file (unable to open file: name = 'A549.snap', errno = 17, error message = 'File exists', flags = 15, o_flags = c2)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/r3fang/SnapATAC/issues/101?email_source=notifications&email_token=AM2Y5MS2F4YORZD4R27OG4DQK6PXBA5CNFSM4IZCNGKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7JKJQI#issuecomment-533898433, or mute the thread https://github.com/notifications/unsubscribe-auth/AM2Y5MU5DAWGAMTVJHKKXK3QK6PXBANCNFSM4IZCNGKA .