Skip to content

adding boilerplate text at top of scripts missing it NO_JIRA #84

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

IsaacSugden
Copy link
Contributor

No description provided.

'''Returns: identifier, smiles'''
mol_reader = MoleculeReader(os.path.join(directory, file))
mol = mol_reader[0]

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [flake8] <293> reported by reviewdog 🐶
blank line contains whitespace

action='store_true',
help='Removes special characters from ids that may be problematic.'
)

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [flake8] <293> reported by reviewdog 🐶
blank line contains whitespace

csvwriter = csv.writer(output_file, delimiter=',', quotechar='|')
csvwriter.writerow(['identifier', 'n_components',
'component_a', 'component_b', 'neutral_a', 'neutral_b'])

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [flake8] <293> reported by reviewdog 🐶
blank line contains whitespace

# API group directories contain one or more API files and a directory of coformers
API_groups = [name for name in os.listdir(
args.input_dir) if os.path.isdir(os.path.join(args.input_dir, name))]

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [flake8] <293> reported by reviewdog 🐶
blank line contains whitespace

args.input_dir) if os.path.isdir(os.path.join(args.input_dir, name))]

exp_replaced = combo_count = 0

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [flake8] <293> reported by reviewdog 🐶
blank line contains whitespace

for coformer_file in file_list(coformer_dir_path):
coformer_id, coformer_smiles = read_mol_file(
coformer_dir_path, coformer_file)

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [flake8] <293> reported by reviewdog 🐶
blank line contains whitespace

if (x, y) in list(experimental_dict.keys()):
exp_bool = experimental_dict[(x, y)]
exp_replaced += 1

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [flake8] <293> reported by reviewdog 🐶
blank line contains whitespace

if args.clean_id:
api_id = string_scrubber(api_id)
coformer_id = string_scrubber(coformer_id)

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [flake8] <293> reported by reviewdog 🐶
blank line contains whitespace

n_components = 2
if api_smiles == coformer_smiles:
n_components = 1

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [flake8] <293> reported by reviewdog 🐶
blank line contains whitespace


combo_id = ".".join([api_id, coformer_id, str(exp_bool)])
csvwriter.writerow([f'"{combo_id}"', n_components, api_smiles, coformer_smiles, "", ""])

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [flake8] <293> reported by reviewdog 🐶
blank line contains whitespace

Copy link

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

Successfully merging this pull request may close these issues.

1 participant