\begin{longtable}{| X | X | X | X | X |}
  \caption{Traits input for example 2}\label{tab:hostgroups} \\
  \toprule
  & Cattle & Human & Sheep & Food \\
  \midrule
  Ecoli1 & 1 & 0 & 0 & 0 \\
  Ecoli2 & 0 & 1 & 0 & 0 \\
  Ecoli3 & 0 & 1 & 0 & 0 \\
  \bottomrule
\end{longtable}