Skip to content

Commit

Permalink
Add load script for pretty printers to BioFSharp.IO
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Feb 27, 2020
1 parent 97cca9b commit 130e1c6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/BioFSharp.IO/BioFSharp.IO.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<Configurations>Debug;Release;Mono;DotnetCore</Configurations>
</PropertyGroup>
<ItemGroup>
<None Include="BioFSharp.IO.fsx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="GenerateSOFTTypes.fsx" />
<Compile Include="GAF.fs" />
<Compile Include="AssemblyInfo.fs" />
Expand Down
28 changes: 23 additions & 5 deletions src/BioFSharp.IO/BioFSharp.IO.fsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
// Learn more about F# at http://fsharp.net. See the 'F# Tutorial' project
// for more guidance on F# programming.
#nowarn "211"
//Adapted from https://github.com/fslaborg/Deedle/blob/master/src/Deedle/Deedle.fsx

//#load "Library1.fs"
//open BioFSharp.IO
// Standard NuGet or Paket location
#I "."
#I "lib/net45"

// Define your library scripting code here
// Try various folders that people might like
#I "bin/net45"
#I "../bin/net45"
#I "../../bin/net45"
#I "../../bin/BioFSharp.IO/net45"
#I "../../../bin/net45"
#I "lib"

// Reference BioFSharp.IO
#r "BioFSharp.IO.dll"

open BioFSharp.IO

do fsi.AddPrinter(FSIPrinters.prettyPrintBioCollection)
do fsi.AddPrinter(FSIPrinters.prettyPrintBioItem)
do fsi.AddPrinter(FSIPrinters.prettyPrintClustal)
do fsi.AddPrinter(FSIPrinters.prettyPrintGFF3)
do fsi.AddPrinter(FSIPrinters.prettyPrintGPL)
do fsi.AddPrinter(FSIPrinters.prettyPrintGSE)

0 comments on commit 130e1c6

Please sign in to comment.