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

attributes with dots #26

Open
fgvieira opened this issue Mar 4, 2024 · 1 comment
Open

attributes with dots #26

fgvieira opened this issue Mar 4, 2024 · 1 comment

Comments

@fgvieira
Copy link

fgvieira commented Mar 4, 2024

Is it possible to have attribute names with dots?
For example:

pep_version: 2.1.0
sample_table: "samples.csv"
sample_modifiers:
  append:
    sample_name: name
  derive:
    attributes: ["sample_name"]
    sources:
      name: "{accession}_{assembly_info.assembly_name}"

Right now I get the error:

In sample 'name' cannot correctly parse derived attribute source: {accession}_{'assembly_info.assembly_name'}. Caught exception: 'str' object has no attribute 'assembly_name''
@nsheff
Copy link
Contributor

nsheff commented Jun 10, 2024

I believe it's not currently possible to use attributes with dots, because peppy assumes that dots are used as in Python to indicate sub-properties of an object.

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

2 participants