Skip to content

Commit

Permalink
License file and headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ondov committed Jul 18, 2014
1 parent c1601b4 commit 12d2cd8
Show file tree
Hide file tree
Showing 21 changed files with 155 additions and 8 deletions.
44 changes: 44 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
PURPOSE

Harvest is a file format conversion tool for use with the Harvest tool
suite (github.com/marbl/harvest). Harvest is implemented in C++ and
uses Google Protocol Buffers for serialization.

COPYRIGHT LICENSE

Copyright © 2014, Battelle National Biodefense Institute (BNBI);
all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
Adam Phillippy

This Software was prepared for the Department of Homeland Security
(DHS) by the Battelle National Biodefense Institute, LLC (BNBI) as
part of contract HSHQDC-07-C-00020 to manage and operate the National
Biodefense Analysis and Countermeasures Center (NBACC), a Federally
Funded Research and Development Center.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5 changes: 5 additions & 0 deletions src/harvest/AnnotationList.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#include "AnnotationList.h"
#include <fstream>
Expand Down
6 changes: 6 additions & 0 deletions src/harvest/AnnotationList.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#ifndef AnnotationList_h
#define AnnotationList_h

Expand Down
6 changes: 5 additions & 1 deletion src/harvest/HarvestIO.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#include "HarvestIO.h"

Expand Down
5 changes: 5 additions & 0 deletions src/harvest/HarvestIO.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#ifndef HarvestIO_h
#define HarvestIO_h
Expand Down
5 changes: 5 additions & 0 deletions src/harvest/LcbList.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#include "harvest/LcbList.h"
#include <iostream>
Expand Down
6 changes: 6 additions & 0 deletions src/harvest/LcbList.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#ifndef LcbList_h
#define LcbList_h

Expand Down
5 changes: 5 additions & 0 deletions src/harvest/PhylogenyTree.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#include "PhylogenyTree.h"
#include <fstream>
Expand Down
6 changes: 6 additions & 0 deletions src/harvest/PhylogenyTree.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#ifndef harvest_PhylogenyTree
#define harvest_PhylogenyTree

Expand Down
5 changes: 5 additions & 0 deletions src/harvest/PhylogenyTreeNode.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#include "PhylogenyTreeNode.h"

Expand Down
5 changes: 5 additions & 0 deletions src/harvest/PhylogenyTreeNode.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#ifndef PhylogenyTreeNode_h
#define PhylogenyTreeNode_h
Expand Down
10 changes: 9 additions & 1 deletion src/harvest/ReferenceList.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#include <fstream>
#include "ReferenceList.h"
Expand Down Expand Up @@ -55,7 +60,10 @@ int ReferenceList::getReferenceSequenceFromGi(long int gi) const
}
}

throw GiNotFoundException(std::to_string(gi));
char giString[1024];
sprintf(giString, "%ld", gi);

throw GiNotFoundException(giString);

return undef;
}
Expand Down
7 changes: 7 additions & 0 deletions src/harvest/ReferenceList.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#ifndef ReferenceList_h
#define ReferenceList_h

#include <string>
#include <vector>
#include <iostream>
#include <stdexcept>

#include "harvest/pb/harvest.pb.h"

Expand Down
6 changes: 6 additions & 0 deletions src/harvest/TrackList.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#include "harvest/TrackList.h"

using namespace::std;
Expand Down
5 changes: 5 additions & 0 deletions src/harvest/TrackList.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#ifndef TrackList_h
#define TrackList_h
Expand Down
5 changes: 5 additions & 0 deletions src/harvest/VariantList.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#include "harvest/VariantList.h"
#include <fstream>
Expand Down
5 changes: 5 additions & 0 deletions src/harvest/VariantList.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#ifndef VariantList_h
#define VariantList_h
Expand Down
10 changes: 4 additions & 6 deletions src/harvest/harvest.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// main.cpp
// harvest
//
// Created by Brian Ondov on 6/19/13.
//
//
// See the LICENSE.txt file included with this software for license information.

#include <iostream>
#include <fstream>
Expand Down
5 changes: 5 additions & 0 deletions src/harvest/parse.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#include "parse.h"
#include <string.h>
Expand Down
6 changes: 6 additions & 0 deletions src/harvest/parse.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

#ifndef parse_h
#define parse_h

Expand Down
6 changes: 6 additions & 0 deletions src/harvest/pb/harvest.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright © 2014, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen, and
// Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.

message Harvest
{
message Reference
Expand Down

0 comments on commit 12d2cd8

Please sign in to comment.