Skip to content

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

@sonarqubecloud
Copy link

@IsaacSugden IsaacSugden merged commit 07049c8 into main Sep 4, 2025
5 checks passed
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.

2 participants