question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] ClustalO wrapper example from the docs is not working correctly

See original GitHub issue

Describe the bug The example throws an error when it wants to read some temporary files

System.IO.IOException: The process cannot access the file 'C:\Users\schne\AppData\Local\Temp\ac7bce1d-efe2-45ba-8ffa-90d0a60e0f49.fasta' because it is being used by another process.   at System.IO.FileSystem.DeleteFile(String fullPath)
   at System.IO.File.Delete(String path)
   at BioFSharp.IO.ClustalOWrapper.ClustalOWrapper.AlignSequences(IEnumerable`1 input, IEnumerable`1 parameters, FSharpOption`1 name) in C:\Users\schne\source\repos\CSBiology\BioFSharp\src\BioFSharp.IO\ClustalOWrapper.fs:line 347
   at <StartupCode$FSI_0010>.$FSI_0010.main@()
Stopped due to error

To Reproduce

#r "nuget: BioFSharp, 2.0.0-beta5"
#r "nuget: BioFSharp.IO, 2.0.0-beta5"

open BioFSharp
open BioFSharp.IO

open ClustalOWrapper
let cw = ClustalOWrapper()

let sequences = 
    [
    TaggedSequence.createTaggedSequence "pep1" ("AAGECGEK")
    TaggedSequence.createTaggedSequence "pep2" ("AAGEGEK")
    TaggedSequence.createTaggedSequence "pep3" ("AAAGECGEK")
    TaggedSequence.createTaggedSequence "pep4" ("AAGECGEL")
    ]

let alignedSequences = 
    cw.AlignSequences(sequences,Seq.empty)

Additional context

Also, conversion functions or overloads for AlignSequences that work on all BioSequences (BioArray, BioList, BioSeq), so something like TaggedSequence<string,seq<IBioItem>> would be awesome. Tagging @HLWeil as you’re the creator 😉

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
HLWeilcommented, May 8, 2021

well yes, but actually no

This is the path it tries for me: C:\Users\schne\source\repos\CSBiology\BioFSharp\lib\clustal-omega\clustalo.exe 💯

I think either we change it to look for a global clustal installation or we make the parameter mandatory?

(Edit: Yes that was the intention. Not sure if building the repo yourself should be regarded as a a case in the code though)

1reaction
kMutagenecommented, May 8, 2021

Should be fixed with https://github.com/CSBiology/BioFSharp/commit/beb4158e8e8d71e7c956347db1df2f2e99f8a5e4

Adaptions to work on biosequences would still be highly appreciated

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · CSBiology/BioFSharp
[BUG] Using pretty printers on BioSeq after translation results in an empty ... [BUG] ClustalO wrapper example from the docs is not working...
Read more >
Beginner help with ClustalW error: could not open ...
The error you get is because ClustalW can't find your input file 1P30Sr.faaGbl in your working/current directory. Make sure your file exists in ......
Read more >
CLUSTALO — Snakemake Wrappers tags/v2.3.2 documentation
Multiple alignment of nucleic acid and protein sequences. Example¶. This wrapper can be used in the following way: rule clustalo: ...
Read more >
Help - Clustal Omega FAQ
It is often caused by using a sequence format not supported by Clustal Omega, or a problem with the formatting for example sequence...
Read more >
Integration of external software — EggLib's documentation
EggLib provides wrappers of external programs in order to extend its functionalities besides its own population genetics and sequence management tools (although ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found