Skip to content

Formatting python scripts with black auto-formatter#73

Open
pavan-kotha-strandls wants to merge 1 commit intobioinform:accelerate_preprocess_newfrom
shanmukhkatragadda:ap_formatting
Open

Formatting python scripts with black auto-formatter#73
pavan-kotha-strandls wants to merge 1 commit intobioinform:accelerate_preprocess_newfrom
shanmukhkatragadda:ap_formatting

Conversation

@pavan-kotha-strandls
Copy link
Copy Markdown
Collaborator

Formatting changes with black auto-formatter.

abs(x[1] - pos_),
abs(min(x[1] + len(x[2]), pos_ + len(ref_)) - max(x[1], pos_))) <= max_dist)), record_set))) > 0:
chrom_, pos_, ref_, alt_ = push_left_var(ref_fasta, chrom, pos, ref, alt)
if (
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@pavanstrand the formatting seems to have gone crazy here. Would be better with a bit of refactoring here.

):
records[loc].append(
[
chrom,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Would the formatter have options to control for such formatting? For example, the number of variables to put on one line (here, it seems to be 1)?

@marghoob
Copy link
Copy Markdown

@pavanstrand thanks for this. Did you run this branch on the data to ensure that the output VCF is identical to output before formatting?

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.

2 participants