Skip to content

Conversation

@charles-cowart
Copy link
Contributor

No description provided.

Copy link
Member

@antgonza antgonza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one question.

Comment on lines 139 to 145
with open(files_to_count_path, 'w') as f:
# for raw_counts_r1r2, count corrected.err_barcode_removed files
# (TellReadJob final output).
for root, dirs, files in walk(self.raw_fastq_files_path):
for _file in files:
if 'corrected.err_barcode_removed' in _file:
print(join(root, _file), file=f)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really understand this step, it's just used for printing and not nothing gets written in the file, is that what you want to do?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, this is equivalent to writing f.write("%s\n" % join(root, _file)). There is an additional parameter "file=f" that redirects the print statement from stdout to the file handle 'f'. I've been using this form lately instead of constructing a string just for the sake of appending a newline.

# (TellReadJob final output).
for root, dirs, files in walk(self.raw_fastq_files_path):
for _file in files:
if 'corrected.err_barcode_removed' in _file:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these files being examined?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, I have this marked in my notes. there is a patch for this that expects the integrated results directory instead of Full.

@antgonza antgonza merged commit babe8ae into qiita-spots:main Jan 10, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants