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

support for loading multiline strings in yaml params files #257

Open
seanrjohnson opened this issue Sep 9, 2024 · 0 comments
Open

support for loading multiline strings in yaml params files #257

seanrjohnson opened this issue Sep 9, 2024 · 0 comments

Comments

@seanrjohnson
Copy link

seanrjohnson commented Sep 9, 2024

For pipeline tests, the params load config file function parses multiline strings in yml files differently than supplying them to nextFlow via the command line -params-file option.

params {
   load("example_params.yml")
}

Json file parsed correctly:

{
  "query_sequence": ">A0A2G2JID1\nMPIAQIHILEGRSDEQKETLIREVSEAISRSLDAPLTSVRVIITEMAKGHFGIGGELASKVRR\n>A0A8G5FSM5\nMPIAQLYILEGRSDEQKESLIREISEAMSRSLDAPIERVRVIITEMPKNHFGIGGEPASKLNR\n>A0A0F9USC8\nMPIAQLHILEGRTDEQKEALIREVSEAIARALDAPMPSIRVIISEMPKAHFGIGGEPASKVRR\n>A0A3S8ND41\nMPVAQINILEGRSDEQKETLIREVSEAISRSLGAPVENVRIIITEMPKQHFGIGGQSAKKRGR\n",
  "query_file": null,
  "identity": 100,
  "fasta_type": "protein",
  "algorithm": "cd-hit",
  "output_type": "genbank",
  "count": "prefix"
}

.yml file not parsed correctly (deletes newlines in "query_sequence"):

query_sequence: ">A0A2G2JID1\nMPIAQIHILEGRSDEQKETLIREVSEAISRSLDAPLTSVRVIITEMAKGHFGIGGELASKVRR\n>A0A8G5FSM5\nMPIAQLYILEGRSDEQKESLIREISEAMSRSLDAPIERVRVIITEMPKNHFGIGGEPASKLNR\n>A0A0F9USC8\nMPIAQLHILEGRTDEQKEALIREVSEAIARALDAPMPSIRVIISEMPKAHFGIGGEPASKVRR\n>A0A3S8ND41\nMPVAQINILEGRSDEQKETLIREVSEAISRSLGAPVENVRIIITEMPKQHFGIGGQSAKKRGR\n"
query_file:
identity: 100
fasta_type: protein
algorithm: cd-hit
output_type: genbank
count: prefix

.yml file also not parsed correctly (deletes newlines in "query_sequence"):

query_sequence: |
  >A0A2G2JID1
  MPIAQIHILEGRSDEQKETLIREVSEAISRSLDAPLTSVRVIITEMAKGHFGIGGELASKVRR
  >A0A8G5FSM5
  MPIAQLYILEGRSDEQKESLIREISEAMSRSLDAPIERVRVIITEMPKNHFGIGGEPASKLNR
  >A0A0F9USC8
  MPIAQLHILEGRTDEQKEALIREVSEAIARALDAPMPSIRVIISEMPKAHFGIGGEPASKVRR
  >A0A3S8ND41
  MPVAQINILEGRSDEQKETLIREVSEAISRSLGAPVENVRIIITEMPKQHFGIGGQSAKKRGR
query_file:
identity: 100
fasta_type: protein
algorithm: cd-hit
output_type: genbank
count: prefix
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

1 participant