carolzhou / multiPhATE2

multiPhATE with comparative genomics
18 stars 10 forks source link

Brand new pull causes errors #12

Closed rfcohen closed 3 years ago

rfcohen commented 3 years ago

Love the tool. However, I've been successful using multiphate 1 and 2 and today I saw there were updates that I didn't have. So I did 'git pull'. Reran the database set up and then tried to just run the sample. And I get this output:

(multiphate) rcohen@APTint:~/multiPhATE2$ python3 multiPhate.py sample.multiPhate.config sh: 1: cannot create /vog.gene.headers.lst: Permission denied sh: 1: cannot create /vog.protein.headers.lst: Permission denied multiPhate says, ERROR: unrecognized line in config file: multiPhate says, User input has been checked. If you are satisfied that your databases are correctly configured, set check_databases to 'false' in your configuration file, and proceed with multiPhATE processing. Exiting now.

I don't understand why it's trying to create files at the root? Further, I'm using the sample config straight from GitHub so how is there an error in the config file?

Thank you.

carolzhou commented 3 years ago

Hi Rob,

Please check your configuration file to verify that the fullpath/filename of your VOG Gene and VOG Protein databases are correct. The code is trying to extract fasta headers from those databases and write them to the Databases/VOGs/ directory. It doesn't seem like file permissions should be the problem, since you (as the program user) should have permission to write to any directory within your multiPhATE2 installation. However, better check that to be sure. Please post or send me your configuration file, as that might prove helpful.

Also, please be aware that mutliPhATE2 is currently in peer review and I am modifying/updating the code every few days. The 2.0 release should be ready by the end of January, but until then the code will be in flux, and I cannot guarantee that all the glitches and typos will be worked out until I do the full integration testing. So please keep that in mind.

-Carol

On Tue, Jan 5, 2021 at 4:56 PM Rob Cohen notifications@github.com wrote:

Love the tool. However, I've been successful using multiphate 1 and 2 and today I saw there were updates that I didn't have. So I did 'git pull'. Reran the database set up and then tried to just run the sample. And I get this output:

(multiphate) rcohen@APTint:~/multiPhATE2$ python3 multiPhate.py sample.multiPhate.config sh: 1: cannot create /vog.gene.headers.lst: Permission denied sh: 1: cannot create /vog.protein.headers.lst: Permission denied multiPhate says, ERROR: unrecognized line in config file: multiPhate says, User input has been checked. If you are satisfied that your databases are correctly configured, set check_databases to 'false' in your configuration file, and proceed with multiPhATE processing. Exiting now.

I don't understand why it's trying to create files at the root? Further, I'm using the sample config straight from GitHub so how is there an error in the config file?

Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/carolzhou/multiPhATE2/issues/12, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWGOO5QJ2PJBK46LYBYXD3SYOYKXANCNFSM4VWVYPNA .

rfcohen commented 3 years ago

Hi Carol and thanks for writing back so quickly.

I’m using the sample.multiphate.config file. Just trying to make it run cleanly first.

The file is attached straight from GitHub.

It seems like the problem is here in multiphate.py:

    PHATE_VOG_GENE_BASE_DIR = os.path.dirname(match_vogGeneDBpath.group(1)) + '/'

Which does some gyrations but its source is the config file.

p_vogGeneDBpath = re.compile("vog_gene_database_path='(.*)’")

If this is blank in the config file, the BASE_DIR is blank + “/“ which shows up as the root.

Hope this helps. I look forward to using this, it’s really good.

-Rob

On Jan 5, 2021, at 8:18 PM, Carol Zhou notifications@github.com wrote:

Hi Rob,

Please check your configuration file to verify that the fullpath/filename of your VOG Gene and VOG Protein databases are correct. The code is trying to extract fasta headers from those databases and write them to the Databases/VOGs/ directory. It doesn't seem like file permissions should be the problem, since you (as the program user) should have permission to write to any directory within your multiPhATE2 installation. However, better check that to be sure. Please post or send me your configuration file, as that might prove helpful.

Also, please be aware that mutliPhATE2 is currently in peer review and I am modifying/updating the code every few days. The 2.0 release should be ready by the end of January, but until then the code will be in flux, and I cannot guarantee that all the glitches and typos will be worked out until I do the full integration testing. So please keep that in mind.

-Carol

On Tue, Jan 5, 2021 at 4:56 PM Rob Cohen notifications@github.com wrote:

Love the tool. However, I've been successful using multiphate 1 and 2 and today I saw there were updates that I didn't have. So I did 'git pull'. Reran the database set up and then tried to just run the sample. And I get this output:

(multiphate) rcohen@APTint:~/multiPhATE2$ python3 multiPhate.py sample.multiPhate.config sh: 1: cannot create /vog.gene.headers.lst: Permission denied sh: 1: cannot create /vog.protein.headers.lst: Permission denied multiPhate says, ERROR: unrecognized line in config file: multiPhate says, User input has been checked. If you are satisfied that your databases are correctly configured, set check_databases to 'false' in your configuration file, and proceed with multiPhATE processing. Exiting now.

I don't understand why it's trying to create files at the root? Further, I'm using the sample config straight from GitHub so how is there an error in the config file?

Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/carolzhou/multiPhATE2/issues/12, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWGOO5QJ2PJBK46LYBYXD3SYOYKXANCNFSM4VWVYPNA .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/carolzhou/multiPhATE2/issues/12#issuecomment-755013792, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALBS74B7L54SLMAO7RHHU3SYO263ANCNFSM4VWVYPNA.

carolzhou commented 3 years ago

Hi Rob, You cannot use the sample config file straight out of the box. You need to specify the complete path/filenames for the databases you are using. Please try again and see if that fixes the problem. -Carol

On Tue, Jan 5, 2021 at 5:30 PM Rob Cohen notifications@github.com wrote:

Hi Carol and thanks for writing back so quickly.

I’m using the sample.multiphate.config file. Just trying to make it run cleanly first.

The file is attached straight from GitHub.

It seems like the problem is here in multiphate.py:

PHATE_VOG_GENE_BASE_DIR = os.path.dirname(match_vogGeneDBpath.group(1)) + '/'

Which does some gyrations but its source is the config file.

p_vogGeneDBpath = re.compile("vog_gene_database_path='(.*)’")

If this is blank in the config file, the BASE_DIR is blank + “/“ which shows up as the root.

Hope this helps. I look forward to using this, it’s really good.

-Rob

On Jan 5, 2021, at 8:18 PM, Carol Zhou notifications@github.com wrote:

Hi Rob,

Please check your configuration file to verify that the fullpath/filename of your VOG Gene and VOG Protein databases are correct. The code is trying to extract fasta headers from those databases and write them to the Databases/VOGs/ directory. It doesn't seem like file permissions should be the problem, since you (as the program user) should have permission to write to any directory within your multiPhATE2 installation. However, better check that to be sure. Please post or send me your configuration file, as that might prove helpful.

Also, please be aware that mutliPhATE2 is currently in peer review and I am modifying/updating the code every few days. The 2.0 release should be ready by the end of January, but until then the code will be in flux, and I cannot guarantee that all the glitches and typos will be worked out until I do the full integration testing. So please keep that in mind.

-Carol

On Tue, Jan 5, 2021 at 4:56 PM Rob Cohen notifications@github.com wrote:

Love the tool. However, I've been successful using multiphate 1 and 2 and today I saw there were updates that I didn't have. So I did 'git pull'. Reran the database set up and then tried to just run the sample. And I get this output:

(multiphate) rcohen@APTint:~/multiPhATE2$ python3 multiPhate.py sample.multiPhate.config sh: 1: cannot create /vog.gene.headers.lst: Permission denied sh: 1: cannot create /vog.protein.headers.lst: Permission denied multiPhate says, ERROR: unrecognized line in config file: multiPhate says, User input has been checked. If you are satisfied that your databases are correctly configured, set check_databases to 'false' in your configuration file, and proceed with multiPhATE processing. Exiting now.

I don't understand why it's trying to create files at the root? Further, I'm using the sample config straight from GitHub so how is there an error in the config file?

Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/carolzhou/multiPhATE2/issues/12, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACWGOO5QJ2PJBK46LYBYXD3SYOYKXANCNFSM4VWVYPNA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/carolzhou/multiPhATE2/issues/12#issuecomment-755013792>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AALBS74B7L54SLMAO7RHHU3SYO263ANCNFSM4VWVYPNA .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/carolzhou/multiPhATE2/issues/12#issuecomment-755017565, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWGOOY6HUJFYHECQ6WUOJLSYO4MFANCNFSM4VWVYPNA .