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

Illumiprocessor error: configparser.MissingSectionHeaderError: File contains no section headers. #19

Open
marianamazzochi opened this issue Oct 17, 2022 · 0 comments

Comments

@marianamazzochi
Copy link

Hello,
I am having some issues when trying to use the pipeline for Illumiprocessor. I would be very grateful if one of you is able to help me to found it out.
I am working in a MacOS Monterey 12.6. I used some example files from Rapid Genomics and my .conf file looks like this:


[adapters]

i7 = GATCGGAAGAGCACACGTCTGAACTCCAGTCACBCBCBCBCATCTCGTATGCCGTCTTCTGCTTG

i5 = AATGATACGGCGACCACCGAGATCTACACBCBCBCBCACACTCTTTCCCTACACGACGCTCTTCCGATCT

[tag sequences]

i5P01WG01 = TCTACTCT

i7P01WG01 = CACCTTAC

[tag map]

RAPiDGenomicsP01WG01 = i5P01WG01,i7P01WG01

[names]

RAPiDGenomicsP01WG01 = apeteJLB07


When I try to run "illumiprocessor
--input 1_raw-fastq
--output 2_clean-fastq
--config illumiprocessor.conf
--cores 4", I get the following error (I am pasting the complete error):

"2022-10-17 16:25:46,835 - illumiprocessor - INFO - ==================== Starting illumiprocessor ===================
2022-10-17 16:25:46,835 - illumiprocessor - INFO - Version: 2.10
2022-10-17 16:25:46,835 - illumiprocessor - INFO - Argument --config: illumiprocessor.conf
2022-10-17 16:25:46,835 - illumiprocessor - INFO - Argument --cores: 4
2022-10-17 16:25:46,836 - illumiprocessor - INFO - Argument --input: /Users/marimazzochi/Desktop/1_raw-fastq
2022-10-17 16:25:46,836 - illumiprocessor - INFO - Argument --log_path: None
2022-10-17 16:25:46,836 - illumiprocessor - INFO - Argument --min_len: 40
2022-10-17 16:25:46,836 - illumiprocessor - INFO - Argument --no_merge: False
2022-10-17 16:25:46,836 - illumiprocessor - INFO - Argument --output: /Users/marimazzochi/Desktop/2_clean-fastq
2022-10-17 16:25:46,836 - illumiprocessor - INFO - Argument --phred: phred33
2022-10-17 16:25:46,836 - illumiprocessor - INFO - Argument --r1_pattern: _R1
2022-10-17 16:25:46,836 - illumiprocessor - INFO - Argument --r2_pattern: _R2
2022-10-17 16:25:46,836 - illumiprocessor - INFO - Argument --se: False
2022-10-17 16:25:46,836 - illumiprocessor - INFO - Argument --trimmomatic: /Users/marimazzochi/opt/miniconda3/envs/phyluce-1.7.1/bin/trimmomatic
2022-10-17 16:25:46,836 - illumiprocessor - INFO - Argument --verbosity: INFO
Traceback (most recent call last):
File "/Users/marimazzochi/opt/miniconda3/envs/phyluce-1.7.1/bin/illumiprocessor", line 17, in
sys.exit(main())
File "/Users/marimazzochi/opt/miniconda3/envs/phyluce-1.7.1/lib/python3.6/site-packages/illumiprocessor/cli/main.py", line 114, in main
main(args)
File "/Users/marimazzochi/opt/miniconda3/envs/phyluce-1.7.1/lib/python3.6/site-packages/illumiprocessor/main.py", line 29, in main
conf.read(args.config)
File "/Users/marimazzochi/opt/miniconda3/envs/phyluce-1.7.1/lib/python3.6/configparser.py", line 697, in read
self._read(fp, filename)
File "/Users/marimazzochi/opt/miniconda3/envs/phyluce-1.7.1/lib/python3.6/configparser.py", line 1080, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers."

In order to make it work, I tried some things that I found on StackOverFlow and on GitHub, but nothing worked out: 1 - replacing "-" for "*" in the adapters section because some people that use MacOS said that this caused troubles for them; 2 - replaced ":" for "="; 3 - changed UTF-8 for ASCII when saving my .conf file.
I suspect that this issue may be related to formatting of .conf file. I am not able to save it as .conf, only as .rtf on TextEdit or as .csv on Numbers, and then I am manually changing it to .conf on Terminal (using the command 'mv').
That said, do you have any suggestion about the error or maybe about a different way of creating a .conf file?

Cheers,
Mariana Mazzochi

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

1 participant