Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error 256 no such file or directory #6

Open
jxchong opened this issue Oct 2, 2023 · 4 comments
Open

error 256 no such file or directory #6

jxchong opened this issue Oct 2, 2023 · 4 comments

Comments

@jxchong
Copy link

jxchong commented Oct 2, 2023

HAPPE keeps complaining "no such file or directory" but weirdly it is complaining about how it cannot find the OUTPUT file that would be created when I provide the --output argument

Here's the error using your example files. I'm on a Mac running 13.5.2 and using zsh as my shell (although I tried in bash too).

% HAPPE \
-g happe.config \
-v SEVIR.592.SNP.ann.allele2.part.vcf.gz \
-i sample_inf.tsv \
-c sample.color.txt \
-k small_example.list \
-o SEVIR_5G085400v2

[2023-10-02 16:31:25,816] - HAPPE - INFO - deal args.
[2023-10-02 16:31:25,818] - HAPPE - INFO - Filter samples and variants.
ln: SEVIR_5G085400v2.vcf.gz: No such file or directory
[2023-10-02 16:31:25,842] - HAPPE - ERROR - Filter samples and variants. -- retrun code:256
@jxchong
Copy link
Author

jxchong commented Oct 3, 2023

FYI, I installed this on my cluster just to try a different system but receive a the same because that file does not exist.

$ HAPPE \
> -g happe.config \
> --gzvcf SEVIR.592.SNP.ann.allele2.part.vcf.gz \
> -i sample_inf.tsv \
> -c sample.color.txt \
> -k small_example.list \
> -o SEVIR_5G085400v2
[2023-10-03 15:46:00,257] - HAPPE - INFO - deal args.
[2023-10-03 15:46:00,257] - HAPPE - INFO - Filter samples and variants.
ln: failed to create symbolic link ‘SEVIR_5G085400v2.vcf.gz’: File exists
[2023-10-03 15:46:00,261] - HAPPE - ERROR - Filter samples and variants. -- retrun code:256

@fengcong3
Copy link
Owner

Thanks for give HAPPE a try!

  1. I'm sorry I don't have a mac environment and can't test the first error.
  2. For the second error, the log you provided indicates that the file already exists. You can either delete the SEVIR_5G085400v2.vcf.gz file or change the execution directory.

I would also recommend that you provide the -r option, as I wrote in the example.

@jxchong
Copy link
Author

jxchong commented Oct 9, 2023

In both cases the file does NOT exist, that's the weird thing. There is no such file by that name in the folder, so I don't know why it's complaining about it. Similarly in the first scenario, it's complaining about the output file not existing, when of course it doesn't exist because the program hasn't been run yet. (based on the error message, there might be a stage at which you attempt to create a link to the file with ln ?)

@fengcong3
Copy link
Owner

Yes, if you don't provide the -r option or the -s option, it will just create a softlink to the input file. I suggest you try specifying a specific chromosome region such as -r 5:6847970-6850236 in my example, and then see if you get any errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants